do not create global variables

This commit is contained in:
Régis Hanol 2013-07-10 22:52:14 +02:00
parent 6de1fed87a
commit e8c1a81e87

View file

@ -1275,7 +1275,7 @@ else
// autolink anything like <http://example.com>
var replacer = function (wholematch, m1) {
m1encoded = m1.replace(/\_\_/, '%5F%5F');
var m1encoded = m1.replace(/\_\_/, '%5F%5F');
return "<a href=\"" + m1encoded + "\">" + pluginHooks.plainLinkText(m1) + "</a>";
}
text = text.replace(/<((https?|ftp):[^'">\s]+)>/gi, replacer);