User:Cacycle/wikEd.js and Wikipedia:Sandbox: Difference between pages

(Difference between pages)
Content deleted Content added
Per request made by Helder at User talk:Cacycle/wikEd
 
m changing the position of the mw.log command
 
Line 1: Line 1:
// <source lang="JavaScript">

if (typeof(wikEd) == 'undefined') { window.wikEd = {}; }
if (typeof(wikEd) == 'undefined') { window.wikEd = {}; }


Line 3,771: Line 3,769:
var regExpFind;
var regExpFind;
try {
try {
mw.log( 'Invalid regex:\nfind=' + regExpMatch[2] + '\nreplace=' + regExpMatch[3]);
regExpFind = new RegExp(regExpMatch[2], 'gm');
regExpFind = new RegExp(regExpMatch[2], 'gm');
}
}
catch (err) {
catch (err) {
mw.log( 'Invalid regex:\nfind=' + regExpMatch[2] + '\nreplace=' + regExpMatch[3]);
continue;
continue;
}
}
Line 16,359: Line 16,357:
// call startup
// call startup
wikEd.Startup();
wikEd.Startup();

// </source>