Wikipedia:AutoEd/whitespace.js: Difference between revisions
Content deleted Content added
Plastikspork (talk | contribs) Move up |
Plastikspork (talk | contribs) Try making this more aggressive |
||
Line 9:
if(str.search(/\uE000/g) < 0) { // see [[Private Use Area]]
// Mark spacing before stub templates
str = str.replace(/(\n)[ \t]*(\n)[ \t]*(\n\{\{[^{}]*\-stub\}\})/gm, '
str = str.replace(/(\n)[ \t]*(\n\{\{[^{}]*\-stub\}\})/gm, '
// Remove extra newlines
str = str.replace(/(\n\n)\n+/g, "$1");
|