From 8114b2547009da984e77267c14f7cc7f1b0e4d48 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 21 Nov 2024 22:39:27 +0100 Subject: [PATCH] markdown_parser: allow comma and semicolon in naked URLs (#1162) --- common/markdown_parser/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/markdown_parser/parser.ts b/common/markdown_parser/parser.ts index c1cbc1e2..d7c5e327 100644 --- a/common/markdown_parser/parser.ts +++ b/common/markdown_parser/parser.ts @@ -577,7 +577,7 @@ const NakedURL = regexParser( { firstCharCode: 104, // h regex: - /^https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}([-a-zA-Z0-9()@:%_\+.~#?&=\/]*)/, + /^https?:\/\/[-a-zA-Z0-9@:%._\+~#=,;]{1,256}([-a-zA-Z0-9()@:%_\+.,;~#?&=\/]*)/, nodeType: "NakedURL", className: "sb-naked-url", tag: NakedURLTag,