From 9c7a867c1851914322a4b60f20223ae06a31c661 Mon Sep 17 00:00:00 2001 From: George Rusu <56009869+grusu6928@users.noreply.github.com> Date: Tue, 27 Oct 2020 12:13:13 -0700 Subject: [TMA263] Added Phone Verification UI (#74) * [TMA263] Added Phone Verification UI * include email field Co-authored-by: george Co-authored-by: hsalhab --- src/constants/regex.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/constants') diff --git a/src/constants/regex.ts b/src/constants/regex.ts index 38ed03ce..4d60d78c 100644 --- a/src/constants/regex.ts +++ b/src/constants/regex.ts @@ -48,3 +48,11 @@ export const bioRegex: RegExp = /^$|^[A-Za-z'\-,.!@#$%^&*()_:?/ ]{1,150}$/; * - match alphanumerics, hyphens, and whitespaces */ export const genderRegex: RegExp = /^$|^[A-Za-z\- ]{2,20}$/; + +/** + * The phone regex has the following constraints + * - must be 10 digits + * - accepts 012-345-6789 + * + */ +export const phoneRegex: RegExp = /(\+[1][0-9]{10})/; -- cgit v1.2.3-70-g09d2