User:Ohconfucius/script/flagcruft.js: Difference between revisions

Content deleted Content added
optional digit
incorrect register
Line 303:
regex(/(\'{0,3}){{nowrap\| ?({{flagicon\|([^}]+)}}[^\n]+)}}(?=\n)/gi, '$1$2'); //using template with country identifier (for Wimbledon articles)
regex(/{{nowrap\| ?(\'{0,3})({{flagicon\|([^}]+)}}[^\n]+)}}(?=\n)/gi, '$1$2'); //using template with country identifier (for Wimbledon articles)
regex(/(\| ?RD[2-4]-team\d\d?=\'{0,3}){{flagicon\|(?:[^}]+)}} ?([^\n>{}]+<br ?\/?>)&nbsp;{{flagicon\|([^}]+)}} ?/gi, '$1$2'); //rem flag from table of all but first round
regex(/(\| ?RD[2-4]-team\d\d=\'{0,3}){{flagicon\|(?:[^}]+)}} ?/gi, '$1'); //rem flag from table of all but first round
regex(/{{flagicon\|([^}]+)}} ?(\'{0,3}\[\[(?:[^\]]+)\]\])/gi, '{{flagathlete|$2|$1}}'); //using template with country identifier (for Wimbledon articles)