diff options
author | hsalhab <husam_salhab@brown.edu> | 2021-06-08 17:08:26 -0400 |
---|---|---|
committer | hsalhab <husam_salhab@brown.edu> | 2021-06-08 17:09:49 -0400 |
commit | 17d41145a0791d2687c7f4abd934b83c008e6f12 (patch) | |
tree | c85bb7622afc6d64cd7254455a46c4dca2f79cb8 /src/constants | |
parent | 65eba8b9be14a397bf49fc3b419d3e64bd0422b7 (diff) |
fix regex, forward slash needs escape
Diffstat (limited to 'src/constants')
-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 61523203..f934185d 100644 --- a/src/constants/regex.ts +++ b/src/constants/regex.ts @@ -36,7 +36,7 @@ export const nameRegex: RegExp = /^[A-Za-z'\-,. ]{2,20}$/; * - match alphanumerics, and special characters used in URLs */ export const websiteRegex: RegExp = - /^$|^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,50}\.[a-zA-Z0-9()]{2,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]{0,35})$/; + /^$|^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,50}\.[a-zA-Z0-9()]{2,6}\b([-a-zA-Z0-9()@:%_+.~#?&\/=]{0,35})$/; /** * The website regex has the following constraints |