User:WOSlinkerBot/linttask22.js: Difference between revisions

Content deleted Content added
WOSlinkerBot (talk | contribs)
No edit summary
WOSlinkerBot (talk | contribs)
No edit summary
Line 40:
myContent = myContent.replace(/\<small\>\<font color\=\"?(red|blue|green|black|brown|gold|maroon|purple|yellow|orange|navy|white|magenta)\"?\>(\[\[[^\|\]]*\|)([^\]]*)(\]\])\<\/font\>\<\/small\>/gi,'$2<small style="color:$1;">$3</small>$4');
myContent = myContent.replace(/\<small\>\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\[[^\|\]]*\|)([^\]]*)(\]\])\<\/font\>\<\/small\>/gi,'$2<small style="color:#$1;">$3</small>$4');
 
myContent = myContent.replace(/\<font color\=\"?(\#[a-f0-9]*)\"?\>(\[\[[^\|\]]*\|)\<small\>([^\]]*)\<\/small\>(\]\])\<\/font\>/gi,'$2<small style="color:$1;">$3</small>$4');
myContent = myContent.replace(/\<font color\=\"?(red|blue|green|black|brown|gold|maroon|purple|yellow|orange|navy|white|magenta)\"?\>(\[\[[^\|\]]*\|)\<small\>([^\]]*)\<\/small\>(\]\])\<\/font\>/gi,'$2<small style="color:$1;">$3</small>$4');
myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\[[^\|\]]*\|)\<small\>([^\]]*)\<\/small\>(\]\])\<\/font\>/gi,'$2<small style="color:#$1;">$3</small>$4');
 
myContent = myContent.replace(/\<font color\=\"?(\#[a-f0-9]*)\"?\>(\[\[[^\|\]]*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;">$3</span>$4');