aboutsummaryrefslogtreecommitdiff
path: root/src/constants/regex.ts
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-11 17:01:43 -0400
committerIvan Chen <ivan@tagg.id>2021-06-11 17:01:43 -0400
commitbcfbaf00f60b65ab5f8c38ff8766644a2496bed1 (patch)
treeaf2fd669cf1f4cd427e832a39ac9deb2cd7a1430 /src/constants/regex.ts
parent47b087816844473be858adf766b2f538ecf6d0aa (diff)
parent17d3f1255bd7692772b675b09685a92b305e8d9b (diff)
Merge branch 'master' into tma904-moment-comment-revamp
# Conflicts: # src/components/moments/MomentPost.tsx # src/components/moments/MomentPostContent.tsx # src/services/MomentService.ts
Diffstat (limited to 'src/constants/regex.ts')
-rw-r--r--src/constants/regex.ts2
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