Wikipedia:AutoEd/whitespace.js: Difference between revisions

Content deleted Content added
Make this slightly less aggressive per talk
Fix for adding space between # and REDIRECT
Line 17:
//* bullet points
if(str.search(/\uE000/g) < 0) { // see [[Private Use Area]]
str = str.replace(/^([\*#]+:*) /gm, "$1");
str = str.replace(/^([\*#]+:*)(REDIRECT)/gmgi, "'$1 "\uE000$2'); // Mark redirects
str = str.replace(/^([\*#]+:*) /gm, "$1");
str = str.replace(/^([\*#]+:*)/gm, "$1 ");
str = str.replace(/[\t ]*\uE000[\t ]*/g, ''); // Unmark redirects
}
//==Headings==