aboutsummaryrefslogtreecommitdiff
path: root/src/constants
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants')
-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