From a2c9c476f2cc694fa67c19394685aa6d6aacdbbf Mon Sep 17 00:00:00 2001 From: Antoine D <106921102+Suboyyy@users.noreply.github.com> Date: Wed, 18 Sep 2024 22:17:53 +0200 Subject: [PATCH] fix: allowed # in team name regex (#235) Co-authored-by: Antoine Dufils --- src/utils/validators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/validators.ts b/src/utils/validators.ts index c996087b..d359728a 100644 --- a/src/utils/validators.ts +++ b/src/utils/validators.ts @@ -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}$/;