PageDown update overwrote a discourse customization; put it back in

This commit is contained in:
balpha 2013-02-24 13:52:46 +01:00
parent 22caa7b6a8
commit 1640616c06

View file

@ -1274,7 +1274,10 @@ 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;