π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB-2605] fix: update URL regex pattern to allow complex links. (#5767)
Prateek Shourya328b6961a26f
diff --git a/web/helpers/string.helper.ts b/web/helpers/string.helper.tsindex 1182feeb0a..e4b4dc6651 100644--- a/web/helpers/string.helper.ts+++ b/web/helpers/string.helper.ts@@ -270,7 +270,7 @@ export const isCommentEmpty = (comment: string | undefined): boolean => {export const checkURLValidity = (url: string): boolean => {if (!url) return false;// regex to match valid URLs (with or without http/https)- const urlPattern = /^(https?:\/\/)?([\da-z.-]+)\.([a-z]{2,6})(\/[\w.-]*)*\/?(\?[=&\w.-]*)?$/i;+ const urlPattern = /^(https?:\/\/)?([\w.-]+\.[a-z]{2,6})(\/[\w\-.~:/?#[\]@!$&'()*+,;=%]*)?$/i;// test if the URL matches the patternreturn urlPattern.test(url);};