From 3f4e4085223a26c9cab99f65d72219c0e34294fd Mon Sep 17 00:00:00 2001 From: Tanmay Bhatia <38436012+tbhatia2299@users.noreply.github.com> Date: Tue, 3 Nov 2020 12:21:54 -0800 Subject: Fixed password message and BioRegex (#94) * Fixed password message and BioRegex * Restored some of the earlier changes --- 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 4d60d78c..3bebe304 100644 --- a/src/constants/regex.ts +++ b/src/constants/regex.ts @@ -40,7 +40,7 @@ export const websiteRegex: RegExp = /^$|^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._+ * - max. 150 chars for bio * - match alphanumerics, and special characters used in URLs */ -export const bioRegex: RegExp = /^$|^[A-Za-z'\-,.!@#$%^&*()_:?/ ]{1,150}$/; +export const bioRegex: RegExp = /^$|^[A-Za-z0-9'\-,.!@#$%^&*()_:?/ ]{1,150}$/; /** * The gender regex has the following constraints @@ -55,4 +55,4 @@ export const genderRegex: RegExp = /^$|^[A-Za-z\- ]{2,20}$/; * - accepts 012-345-6789 * */ -export const phoneRegex: RegExp = /(\+[1][0-9]{10})/; +export const phoneRegex: RegExp = /([0-9]{10})/; -- cgit v1.2.3-70-g09d2