diff options
author | Tanmay Bhatia <tanmay@thetaggid.com> | 2021-01-14 16:16:53 -0800 |
---|---|---|
committer | Tanmay Bhatia <tanmay@thetaggid.com> | 2021-01-14 16:16:53 -0800 |
commit | 397fb6b17ed88d631db0b8bd67f877bc14d59d35 (patch) | |
tree | 13f76cf4b4d7b83354239c1d8d9e68da1e07877f | |
parent | 2c80480ba67a4a8315160f18fe10551dbed03f63 (diff) |
Made the required changes
-rw-r--r-- | src/constants/regex.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constants/regex.ts b/src/constants/regex.ts index 273d3472..fe5ce3ab 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 = /[^]{1,150}$/; +export const bioRegex: RegExp = /^[\s\S]{1,150}$/; /** * The gender regex has the following constraints |