mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
PageDown update overwrote a discourse customization; put it back in
This commit is contained in:
parent
22caa7b6a8
commit
1640616c06
@ -1274,9 +1274,12 @@ else
|
||||
|
||||
// autolink anything like <http://example.com>
|
||||
|
||||
var replacer = function (wholematch, m1) { return "<a href=\"" + m1 + "\">" + pluginHooks.plainLinkText(m1) + "</a>"; }
|
||||
var replacer = function (wholematch, m1) {
|
||||
m1encoded = m1.replace(/\_\_/, '%5F%5F');
|
||||
return "<a href=\"" + m1encoded + "\">" + pluginHooks.plainLinkText(m1) + "</a>";
|
||||
}
|
||||
text = text.replace(/<((https?|ftp):[^'">\s]+)>/gi, replacer);
|
||||
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user