From 765667ff1b72f7ed35d96d4d7dbe90c183e8be11 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Thu, 21 Jan 2021 18:13:43 -0500 Subject: updated regex, removed authentication, updated validation --- src/constants/regex.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/constants') 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 -- cgit v1.2.3-70-g09d2