diff options
author | Ivan Chen <ivan@tagg.id> | 2021-01-21 18:13:43 -0500 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-01-21 18:13:43 -0500 |
commit | 765667ff1b72f7ed35d96d4d7dbe90c183e8be11 (patch) | |
tree | ac6b1f7a5a3abbc396c8b7a367a9bbbfd6323b07 /src/constants/regex.ts | |
parent | d1a5193bc1d7117e8c331918ebaac68aa05b29a7 (diff) |
updated regex, removed authentication, updated validation
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 fe5ce3ab..7de36492 100644 --- a/src/constants/regex.ts +++ b/src/constants/regex.ts @@ -52,10 +52,10 @@ export const genderRegex: RegExp = /^$|^[A-Za-z\- ]{2,20}$/; /** * The phone regex has the following constraints * - must be 10 digits - * - accepts 012-345-6789 + * - accepts 0123456789 * */ -export const phoneRegex: RegExp = /([0-9]{10})/; +export const phoneRegex: RegExp = /^[0-9]{10}$/; /** * The code regex has the following constraints |