Skip to content

The Open Source DocuSign Alternative.

chore: updated url regex

Adithya Krishnabbcb90d8a5c0
diff --git a/packages/lib/constants/url-regex.ts b/packages/lib/constants/url-regex.ts
index 259ce070d..1dfb70ad3 100644
--- a/packages/lib/constants/url-regex.ts
+++ b/packages/lib/constants/url-regex.ts
@@ -1,2 +1,2 @@
export const URL_REGEX =
- /^(https?):\/\/(?:www\.)?[a-zA-Z0-9-]+\.[a-zA-Z0-9()]{2,}(?:\/[a-zA-Z0-9-._?&=/]*)?$/i;
+ /^(https?):\/\/(?:www\.)?(?:[a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.[a-zA-Z0-9()]{2,}(?:\/[a-zA-Z0-9-._?&=/]*)?$/i;