Skip to content

Commit

Permalink
fix: allowed # in team name regex (#235)
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Dufils <[email protected]>
  • Loading branch information
Suboyyy and Antoine Dufils committed Sep 18, 2024
1 parent b11578f commit a2c9c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { UserAge, UserType, Permission, Error as ResponseError } from '../types'

// Matches with LoL EUW summoner name
const usernameRegex = /^[0-9\p{L} _#-]{3,22}$/u;
const nameRegex = /^[\p{L}\d _'-]{1,100}$/u;
const nameRegex = /^[\p{L}\d _'#-]{1,100}$/u;
const lastnameRegex = /^[\p{L} _'-]{1,100}$/u;
const passwordRegex = /^.{6,100}$/;
const placeRegex = /^[A-Z]\d{1,3}$/;
Expand Down

0 comments on commit a2c9c47

Please sign in to comment.