Content deleted Content added
function name |
lessee if this works |
||
Line 15:
var contents = oldContents;
var escaped = [];▼
var escape = function(text, regexString, escapeTable, i)▼
var i = 0;▼
{
var regex = new RegExp(regexString, "g");
Line 22 ⟶ 25:
function(match)
{
replacement = "%%" + i + "%%";
i += 1;
Line 29 ⟶ 32:
);
return text;
};
// Escape ref tags.
▲ var escaped = [];
▲ var i = 0;
contents = escape(
contents,
"<ref[^>]*>[^<]+<\/ref>"
▲ i
);
Line 45 ⟶ 44:
mw.notify(i + " refs found.");
}
var punctuation = "[\.\,\;\:\)]{1,3}";
var count = 0;
|