Skip to content

Commit 8114b25

Browse files
authored
markdown_parser: allow comma and semicolon in naked URLs (silverbulletmd#1162)
1 parent 51fc595 commit 8114b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/markdown_parser/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ const NakedURL = regexParser(
577577
{
578578
firstCharCode: 104, // h
579579
regex:
580-
/^https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}([-a-zA-Z0-9()@:%_\+.~#?&=\/]*)/,
580+
/^https?:\/\/[-a-zA-Z0-9@:%._\+~#=,;]{1,256}([-a-zA-Z0-9()@:%_\+.,;~#?&=\/]*)/,
581581
nodeType: "NakedURL",
582582
className: "sb-naked-url",
583583
tag: NakedURLTag,

0 commit comments

Comments
 (0)