mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #3175 from chapel/fix-autolink-regex
FIX: Remove g and m flags from autolink regex
This commit is contained in:
commit
4db3caec7c
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
a hrefs for them.
|
a hrefs for them.
|
||||||
**/
|
**/
|
||||||
var urlReplacerArgs = {
|
var urlReplacerArgs = {
|
||||||
matcher: /^((?:https?:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.])(?:[^\s()<>]+|\([^\s()<>]+\))+(?:\([^\s()<>]+\)|[^`!()\[\]{};:'".,<>?«»“”‘’\s]))/gm,
|
matcher: /^((?:https?:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.])(?:[^\s()<>]+|\([^\s()<>]+\))+(?:\([^\s()<>]+\)|[^`!()\[\]{};:'".,<>?«»“”‘’\s]))/,
|
||||||
spaceOrTagBoundary: true,
|
spaceOrTagBoundary: true,
|
||||||
|
|
||||||
emitter: function(matches) {
|
emitter: function(matches) {
|
||||||
|
|
Loading…
Reference in a new issue