Fix URL regex

This commit is contained in:
Tarrgon
2025-06-24 13:02:26 -04:00
parent 8236da075a
commit 45ec47877e
+1 -1
View File
@@ -78,7 +78,7 @@ const linkReplacers = [
} }
]; ];
const urlRegex = new RegExp('"((?:[\\S]| )+?)":\\[?((?:https?:\\/\\/[\\w\\d.\\/?=#]+)|\\/[\\w\\d.\\/?=#]+)\\]?', 'gi'); const urlRegex = new RegExp('"((?:[\\S]| )+?)":\\[?((?:https?:\\/\\/[\\w\\d.\\/?=#&%]+)|\\/[\\w\\d.\\/?=#]+)\\]?', 'gi');
const MAX_DESCRIPTION_LENGTH = 500; const MAX_DESCRIPTION_LENGTH = 500;