Skip to content

Commit

Permalink
markdown_parser: allow comma and semicolon in naked URLs (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg authored Nov 21, 2024
1 parent 51fc595 commit 8114b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/markdown_parser/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8114b25

Please sign in to comment.