aboutsummaryrefslogtreecommitdiff
path: root/src/constants/regex.ts
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2021-01-22 19:19:00 -0500
committerGitHub <noreply@github.com>2021-01-22 19:19:00 -0500
commit6cd49ed14f99fe953026e54969abc6232f3aec57 (patch)
tree86338f1cf1a43e67c93473e3af4a72cd43b1e79c /src/constants/regex.ts
parent2262d4937d0248e4742f149c7aa4ec79f76c8478 (diff)
parent765667ff1b72f7ed35d96d4d7dbe90c183e8be11 (diff)
Merge pull request #197 from IvanIFChen/tma578-fix-forgot-password
[TMA-578] Fix Forgot Password
Diffstat (limited to 'src/constants/regex.ts')
-rw-r--r--src/constants/regex.ts4
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