From 8b680e97ad4689493d2c398281cc0da8e333aa04 Mon Sep 17 00:00:00 2001 From: Tanmay Bhatia <38436012+tbhatia2299@users.noreply.github.com> Date: Sat, 24 Oct 2020 09:40:22 -0700 Subject: Updated BioRegex to include additional characters (#66) * Updated BioRegex to include additional characters * Removed one '-' --- src/constants/regex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/constants/regex.ts b/src/constants/regex.ts index c380ee30..38ed03ce 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-z'\-,.!@#$%^&*()_:?/ ]{1,150}$/; /** * The gender regex has the following constraints -- cgit v1.2.3-70-g09d2