User:WOSlinkerBot/tabletidy.js: Difference between revisions

Content deleted Content added
WOSlinkerBot (talk | contribs)
No edit summary
WOSlinkerBot (talk | contribs)
No edit summary
Line 36:
myContent = myContent.replace(/\{\| *cellpadding\=\"\d*\" *class\=\"wikitable/g,'{| class="wikitable');
 
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable sortable\" border\=\"\d\"/g,'{| class="wikitable sortable"');
 
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *border\=\"\d\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *border\=\"\d\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *border\=\"\d\" *cellpadding\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *border\=\"\d\" *cellspacing\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\" *border\=\"\d\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\" *border\=\"\d\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\"/g,'{| class="wikitable sortable"');
 
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\"\d\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class="wikitable"');
Line 62:
myContent = myContent.replace(/\{\| *cellpadding\=\d* *class\=\"wikitable/g,'{| class="wikitable');
 
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *border\=\d *cellpadding\=\d* *cellspacing\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *border\=\d *cellspacing\=\d* *cellpadding\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *border\=\d *cellpadding\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *border\=\d *cellspacing\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *cellpadding\=\d* *cellspacing\=\d* *border\=\d/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *cellspacing\=\d* *cellpadding\=\d* *border\=\d/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *cellpadding\=\d* *cellspacing\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable\" *cellspacing\=\d* *cellpadding\=\d*/g,'{| class="wikitable sortable"');
 
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\"\d\" *cellpadding\=\d* *cellspacing\=\d*/g,'{| class="wikitable"');
Line 94:
myContent = myContent.replace(/class\=\"wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable"');
 
myContent = myContent.replace(/class\= *\"wikitable sortable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable sortable"');
myContent = myContent.replace(/class\= *\"wikitable sortable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable sortable"');
myContent = myContent.replace(/class\= *\"wikitable sortable\" *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable sortable"');
 
myContent = myContent.replace(/class\=\"sortable wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="sortable wikitable"');