User:Erutuon/scripts/footnoteCleanup.js: Difference between revisions

Content deleted Content added
nother notification
count successful replacements
Line 33:
}
var count = 0;
contents = contents.replace(
/((?:%%\d+%%)+)([\.\,\;\:\)]{1,3})/,
function(match, capture1, capture2)
"$2$1"
{
count += 1;
return capture2 + capture1;
}
);
mw.notify(i + " corrections made.");
contents = contents.replace(