markdown_parser: allow comma and semicolon in naked URLs (#1162)
parent
51fc5952bc
commit
8114b25470
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue