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

Content deleted Content added
request to insert js comment by User:Plastikspork
downcasing Genocide
Line 112:
regex(/([^\n]*\[\[)(One Country, Two Systems)(?=[|\]])/g, '$1{{' + 'subst:' + 'lc:$2}}');
regex(/((?:[^\n]*|[^\.]\s)\[\[)(Exclusive Economic Zone)(?=[|\]])/g, '$1{{' + 'subst:' + 'lc:$2}}');
regex(/\b(Armenian|Assyrian|Cambodian|Darfur|Dzungar|East Timor|Greek|Herero and Namaqua|Rwandan) G(enocide)\b/g, '$1 g$2');
regex(/(\[\[(?:\d{3,4} |)(?:[A-Z][a-z]+ )(?:[A-Z][a-z]+ )*)(Conspiracy|Controversy|(?:Race |)Riot|Massacre|Murder|Protest|Uprising)(?=s?(?: of \d{3,4}|)\]| \(\d{3,4}\))/g, '$1{{' + 'subst:' + 'lc:$2}}'); //per Frietjes: you cannot use subst: inside of references