User:WOSlinkerBot/tabletidy.js: Difference between revisions

Content deleted Content added
WOSlinkerBot (talk | contribs)
No edit summary
WOSlinkerBot (talk | contribs)
No edit summary
Line 89:
myContent = myContent.replace(/ (border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *class\=\"wikitable/g,' class="wikitable');
myContent = myContent.replace(/ (border|cellpadding|cellspacing)\=\"?\d*\"? *class\=\"wikitable/g,' class="wikitable');
 
myContent = myContent.replace(/class\=\"wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable"');
myContent = myContent.replace(/class\=\"wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable"');
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"');
myContent = myContent.replace(/class\=\"sortable wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="sortable wikitable"');
myContent = myContent.replace(/class\=\"sortable wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="sortable wikitable"');
 
if(document.getElementById('wpTextbox1').value != myContent) {