Wikipedia:AutoEd/whitespace.js: Difference between revisions
Content deleted Content added
Plastikspork (talk | contribs) Tweak |
Plastikspork (talk | contribs) Per talk page |
||
Line 7:
str = str.replace(/^ ? ? \n/gm, "\n");
str = str.replace(/(\n\n)\n+/g, "$1");
str = str.replace(/\n\n(\* ?\[?http)/g, "\n$1");
Line 13:
str = str.replace(/\n\n\*/g, "\n*");
// str = str.replace(/[ \t][ \t]+/g, " ");
str = str.replace(/(
str = str.replace(/(=\n[\t ]*\n[\t ]*\n)(?:[\t ]*\n)+/g, "$1");
str = str.replace(/ \n/g, "\n");
|