Skip to content

Commit

Permalink
Autolinker Plugin: Allow more chars in query string and hash to match…
Browse files Browse the repository at this point in the history
… more URLs. Fix #1142
  • Loading branch information
Golmote committed Mar 4, 2018
1 parent c246c1a commit 109bd6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/autolinker/prism-autolinker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (
return;
}

var url = /\b([a-z]{3,7}:\/\/|tel:)[\w\-+%~/.:#=?&]+/,
var url = /\b([a-z]{3,7}:\/\/|tel:)[\w\-+%~/.:=&]+(?:\?[\w\-+%~/.:#=?&!$'()*,;]*)?(?:#[\w\-+%~/.:#=?&!$'()*,;]*)?/,
email = /\b\S+@[\w.]+[a-z]{2}/,
linkMd = /\[([^\]]+)]\(([^)]+)\)/,

Expand Down
2 changes: 1 addition & 1 deletion plugins/autolinker/prism-autolinker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 109bd6f

Please sign in to comment.