markdown_parser: allow comma and semicolon in naked URLs (#1162)

pull/1167/head
Michael Stapelberg 2024-11-21 22:39:27 +01:00 committed by GitHub
parent 51fc5952bc
commit 8114b25470
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ const NakedURL = regexParser(
{ {
firstCharCode: 104, // h firstCharCode: 104, // h
regex: 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", nodeType: "NakedURL",
className: "sb-naked-url", className: "sb-naked-url",
tag: NakedURLTag, tag: NakedURLTag,