diff options
author | Shravya Ramesh <37447613+shravyaramesh@users.noreply.github.com> | 2020-11-04 10:57:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 13:57:37 -0500 |
commit | 30c8ff1612f8265f6f9612fd9b73807fd63c309a (patch) | |
tree | 4eda7e1be9b2181b66c8b38ffe1dc3e894290779 /src/constants/regex.ts | |
parent | 8052d68e53ce64f9125c3b287f852ead42c79eff (diff) |
changed username from min 6 to min 3 chars (#105)
Co-authored-by: Ashm Walia <40498934+ashmgarv@users.noreply.github.com>
Diffstat (limited to 'src/constants/regex.ts')
-rw-r--r-- | src/constants/regex.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/constants/regex.ts b/src/constants/regex.ts index 3bebe304..ac38a3b7 100644 --- a/src/constants/regex.ts +++ b/src/constants/regex.ts @@ -15,10 +15,10 @@ export const passwordRegex: RegExp = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA /** * The username regex has the following constraints - * - min. 6 chars, max. 30 chars ({6,30}) + * - min. 3 chars, max. 30 chars ({6,30}) * - match only alphanumerics, underscores, and periods */ -export const usernameRegex: RegExp = /^[a-zA-Z0-9_.]{6,30}$/; +export const usernameRegex: RegExp = /^[a-zA-Z0-9_.]{3,30}$/; /** * The name regex has the following constraints |