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

Content deleted Content added
No edit summary
Undid revision 965887353 by Ohconfucius (talk)
Line 7:
 
// remove naming and flag templates and replacing with country name only
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ABW|ARU|Aruba)|ABW|ARU)(?:\|[^{}]+|)\}\}/g, 'Aruba');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:AFG|Afghanistan)|AFG)(?:\|[^{}]+|)\}\}/g, 'Afghanistan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:AGO|ANG|Angola)|AGO|ANG)(?:\|[^{}]+|)\}\}/g, 'Angola');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:AHO|Netherlands Antilles)|AHO)(?:\|[^{}]+|)\}\}/g, 'Netherlands Antilles');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:AIA|Anguilla)|AIA)(?:\|[^{}]+|)\}\}/g, 'Anguilla');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ALA|Åland Islands)|ALA)(?:\|[^{}]+|)\}\}/g, 'Åland Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ALB|Albania)|ALB)(?:\|[^{}]+|)\}\}/g, 'Albania');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:AND|Andorra)|AND)(?:\|[^{}]+|)\}\}/g, 'Andorra');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ANT|Antigua and Barbuda)|ANT)(?:\|[^{}]+|)\}\}/g, 'Antigua and Barbuda');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ARE|UAE|United Arab Emirates)|ARE|UAE)(?:\|[^{}]+|)\}\}/g, 'United Arab Emirates');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ARG|Argentina)|ARG)(?:\|[^{}]+|)\}\}/g, 'Argentina');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ARM|Armenia)|ARM)(?:\|[^{}]+|)\}\}/g, 'Armenia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ASM|SAM|ASA|American Samoa)|ASM|SAM|ASA)(?:\|[^{}]+|)\}\}/g, 'American Samoa');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ATA|Antarctica)|ATA)(?:\|[^{}]+|)\}\}/g, 'Antarctica');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ATF|French Southern Territories)|ATF)(?:\|[^{}]+|)\}\}/g, 'French Southern Territories');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ATG|Antigua and Barbuda)|ATG)(?:\|[^{}]+|)\}\}/g, 'Antigua and Barbuda');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:AUS|Australia)|AUS)(?:\|[^{}]+|)\}\}/g, 'Australia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:AUT|Austria)|AUT)(?:\|[^{}]+|)\}\}/g, 'Austria');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:AZE|Azerbaijan)|AZE)(?:\|[^{}]+|)\}\}/g, 'Azerbaijan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BDI|Burundi)|BDI)(?:\|[^{}]+|)\}\}/g, 'Burundi');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BEL|Belgium)|BEL)(?:\|[^{}]+|)\}\}/g, 'Belgium');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BEN|Benin)|BEN)(?:\|[^{}]+|)\}\}/g, 'Benin');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BES|Bonaire, Sint Eustatius and Saba)|BES)(?:\|[^{}]+|)\}\}/g, 'Bonaire, Sint Eustatius and Saba');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BFA|BUR|Burkina Faso)|BFA|BUR)(?:\|[^{}]+|)\}\}/g, 'Burkina Faso');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BGD|BAN|Bangladesh)|BGD|BAN)(?:\|[^{}]+|)\}\}/g, 'Bangladesh');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BGR|BUL|Bulgaria)|BGR|BUL)(?:\|[^{}]+|)\}\}/g, 'Bulgaria');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BHN|BHR|Bahrain)|BHN|BHR)(?:\|[^{}]+|)\}\}/g, 'Bahrain');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BHS|BAH|Bahamas)|BHS|BAH)(?:\|[^{}]+|)\}\}/g, 'Bahamas');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BIH|Bosnia and Herzegovina)|BIH)(?:\|[^{}]+|)\}\}/g, 'Bosnia and Herzegovina');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BLM|Saint Barthélemy)|BLM)(?:\|[^{}]+|)\}\}/g, 'Saint Barthélemy');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BLR|Belarus)|BLR)(?:\|[^{}]+|)\}\}/g, 'Belarus');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BLZ|BIZ|Belize)|BLZ|BIZ)(?:\|[^{}]+|)\}\}/g, 'Belize');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BMU|BER|Bermuda)|BMU|BER)(?:\|[^{}]+|)\}\}/g, 'Bermuda');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BOL|Bolivia)|BOL)(?:\|[^{}]+|)\}\}/g, 'Bolivia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BRA|Brazil)|BRA)(?:\|[^{}]+|)\}\}/g, 'Brazil');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BRB|BAR|Barbados)|BRB|BAR)(?:\|[^{}]+|)\}\}/g, 'Barbados');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BRN|BRU|Brunei)|BRN|BRU)(?:\|[^{}]+|)\}\}/g, 'Brunei');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BTN|BHU|Bhutan)|BTN|BHU)(?:\|[^{}]+|)\}\}/g, 'Bhutan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BVT|Bouvet Island)|BVT)(?:\|[^{}]+|)\}\}/g, 'Bouvet Island');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BWA|BOT|Botswana)|BWA|BOT)(?:\|[^{}]+|)\}\}/g, 'Botswana');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:BIR|Burma)|BIR)(?:\|[^{}]+|)\}\}/g, 'Burma');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CAF|Central African Republic)|CAF)(?:\|[^{}]+|)\}\}/g, 'Central African Republic');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CAN|Canada)|CAN)(?:\|[^{}]+|)\}\}/g, 'Canada');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CCK|Cocos (Keeling) Islands)|CCK)(?:\|[^{}]+|)\}\}/g, 'Cocos (Keeling) Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CHE|S[UW]I|Switzerland)|CHE|S[UW]I)(?:\|[^{}]+|)\}\}/g, 'Switzerland');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CHL|CHI|Chile)|CHL|CHI)(?:\|[^{}]+|)\}\}/g, 'Chile');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CHN|PRC|(?:People\'s Republic of |)China)|CHN|PRC)(?:\|[^{}]+|)\}\}/g, 'China');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CIV|Côte d'Ivoire)|CIV)(?:\|[^{}]+|)\}\}/g, 'Côte d\'Ivoire');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CMR|Cameroon)|CMR)(?:\|[^{}]+|)\}\}/g, 'Cameroon');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:COD|Democratic Republic of the Congo)|COD)(?:\|[^{}]+|)\}\}/g, 'Democratic Republic of the Congo');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:COG|CGO|Republic of the Congo|Congo, Republic of the)|COG|CGO)(?:\|[^{}]+|)\}\}/g, 'Republic of the Congo');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:COK|Cook Islands)|COK)(?:\|[^{}]+|)\}\}/g, 'Cook Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:COL|Colombia)|COL)(?:\|[^{}]+|)\}\}/g, 'Colombia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:COM|Comoros)|COM)(?:\|[^{}]+|)\}\}/g, 'Comoros');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CPV|Cape Verde)|CPV)(?:\|[^{}]+|)\}\}/g, 'Cape Verde');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CRI|CRC|Costa Rica)|CRI|CRC)(?:\|[^{}]+|)\}\}/g, 'Costa Rica');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CUB|Cuba)|CUB)(?:\|[^{}]+|)\}\}/g, 'Cuba');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CU[RW]|Curaçao)|CU[RW])(?:\|[^{}]+|)\}\}/g, 'Curaçao');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CXR|Christmas Island)|CXR)(?:\|[^{}]+|)\}\}/g, 'Christmas Island');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CYM|CAY|Cayman Islands)|CYM|CAY)(?:\|[^{}]+|)\}\}/g, 'Cayman Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CYP|Cyprus)|CYP)(?:\|[^{}]+|)\}\}/g, 'Cyprus');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CS[AK]|Czechoslovakia)|CS[AK])(?:\|[^{}]+|)\}\}/g, 'Czechoslovakia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:CZE|Czech Republic)|CZE)(?:\|[^{}]+|)\}\}/g, 'Czech Republic');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:DDR|East Germany)|DDR)(?:\|[^{}]+|)\}\}/g, 'East Germany');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:DEU|GER|(?:Nazi |)Germany)|DEU|GER)(?:\|[^{}]+|)\}\}/g, 'Germany');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:DJI|Djibouti)|DJI)(?:\|[^{}]+|)\}\}/g, 'Djibouti');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:DMA|Dominica)|DMA)(?:\|[^{}]+|)\}\}/g, 'Dominica');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:DNK|DEN|Denmark)|DNK|DEN)(?:\|[^{}]+|)\}\}/g, 'Denmark');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:DOM|Dominican Republic)|DOM)(?:\|[^{}]+|)\}\}/g, 'Dominican Republic');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:DZA|ALG|Algeria)|DZA|ALG)(?:\|[^{}]+|)\}\}/g, 'Algeria');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ECU|Ecuador)|ECU)(?:\|[^{}]+|)\}\}/g, 'Ecuador');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:EGY|Egypt)|EGY)(?:\|[^{}]+|)\}\}/g, 'Egypt');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ENG|England)|ENG)(?:\|[^{}]+|)\}\}/g, 'England');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ERI|Eritrea)|ERI)(?:\|[^{}]+|)\}\}/g, 'Eritrea');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ESH|Western Sahara)|ESH)(?:\|[^{}]+|)\}\}/g, 'Western Sahara');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ESP|SP[AN]|Spain)|ESP|SP[AN])(?:\|[^{}]+|)\}\}/g, 'Spain');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:EST|Estonia)|EST)(?:\|[^{}]+|)\}\}/g, 'Estonia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ETH|Ethiopia)|ETH)(?:\|[^{}]+|)\}\}/g, 'Ethiopia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:FIN|Finland)|FIN)(?:\|[^{}]+|)\}\}/g, 'Finland');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:FJI|FIJ|Fiji)|FJI|FIJ)(?:\|[^{}]+|)\}\}/g, 'Fiji');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:FLK|Falkland Islands)|FLK)(?:\|[^{}]+|)\}\}/g, 'Falkland Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:FRA|France)|FRA)(?:\|[^{}]+|)\}\}/g, 'France');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:FRG|West Germany)|FRG)(?:\|[^{}]+|)\}\}/g, 'West Germany');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:FRO|Faroe Islands)|FRO)(?:\|[^{}]+|)\}\}/g, 'Faroe Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:FSM|(?:Federated States of |)Micronesia)|FSM)(?:\|[^{}]+|)\}\}/g, 'Federated States of Micronesia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GAB|Gabon)|GAB)(?:\|[^{}]+|)\}\}/g, 'Gabon');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GBR|GRB|UK(?:GBI|)|United Kingdom)|GBR|GRB|UK(?:GBI|))(?:\|[^{}]+|)\}\}/g, 'United Kingdom');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GBR2|Great Britain)|GBR2)(?:\|[^{}]+|)\}\}/g, 'Great Britain');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GDR|East Germany)|GDR)(?:\|[^{}]+|)\}\}/g, 'East Germany');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GEO|Georgia)|GEO)(?:\|[^{}]+|)\}\}/g, 'Georgia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GGY|Guernsey)|GGY)(?:\|[^{}]+|)\}\}/g, 'Guernsey');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GHA|Ghana)|GHA)(?:\|[^{}]+|)\}\}/g, 'Ghana');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GIB|Gibraltar)|GIB)(?:\|[^{}]+|)\}\}/g, 'Gibraltar');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GIN|GUI|Guinea)|GIN|GUI)(?:\|[^{}]+|)\}\}/g, 'Guinea');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GLP|Guadeloupe)|GLP)(?:\|[^{}]+|)\}\}/g, 'Guadeloupe');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GMB|GAM|(?:The |)Gambia)|GMB|GAM)(?:\|[^{}]+|)\}\}/g, 'Gambia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GNB|GBS|Guinea-Bissau)|GNB|GBS)(?:\|[^{}]+|)\}\}/g, 'Guinea-Bissau');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GNQ|GEQ|Equatorial Guinea)|GNQ|GEQ)(?:\|[^{}]+|)\}\}/g, 'Equatorial Guinea');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GRC|GRE|Greece)|GRC|GRE)(?:\|[^{}]+|)\}\}/g, 'Greece');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GRD|GRN|Grenada)|GRD|GRN)(?:\|[^{}]+|)\}\}/g, 'Grenada');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GRL|Greenland)|GRL)(?:\|[^{}]+|)\}\}/g, 'Greenland');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GTM|GUA|Guatemala)|GTM|GUA)(?:\|[^{}]+|)\}\}/g, 'Guatemala');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GUF|French Guiana)|GUF)(?:\|[^{}]+|)\}\}/g, 'French Guiana');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GUM|Guam)|GUM)(?:\|[^{}]+|)\}\}/g, 'Guam');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:GUY|Guyana)|GUY)(?:\|[^{}]+|)\}\}/g, 'Guyana');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:HKG|Hong Kong)|HKG)(?:\|[^{}]+|)\}\}/g, 'Hong Kong');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:HMD|Heard Island and McDonald Islands)|HMD)(?:\|[^{}]+|)\}\}/g, 'Heard Island and McDonald Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:HND|HON|Honduras)|HND|HON)(?:\|[^{}]+|)\}\}/g, 'Honduras');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:HRV|CRO|Croatia)|HRV|CRO)(?:\|[^{}]+|)\}\}/g, 'Croatia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:HTI|HAI|Haiti)|HTI|HAI)(?:\|[^{}]+|)\}\}/g, 'Haiti');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:HUN|Hungary)|HUN)(?:\|[^{}]+|)\}\}/g, 'Hungary');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:IDN|INA|Indonesia)|IDN|INA)(?:\|[^{}]+|)\}\}/g, 'Indonesia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:IMN|IOM|Isle of Man)|IMN|IOM)(?:\|[^{}]+|)\}\}/g, 'Isle of Man');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:IND|India)|IND)(?:\|[^{}]+|)\}\}/g, 'India');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:IOT|British Indian Ocean Territory)|IOT)(?:\|[^{}]+|)\}\}/g, 'British Indian Ocean Territory');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:IRL|Ireland)|IRL)(?:\|[^{}]+|)\}\}/g, 'Ireland');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:IRN|IRI|Iran)|IRN|IRI)(?:\|[^{}]+|)\}\}/g, 'Iran');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:IRQ|Iraq)|IRQ)(?:\|[^{}]+|)\}\}/g, 'Iraq');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ISL|Iceland)|ISL)(?:\|[^{}]+|)\}\}/g, 'Iceland');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ISR|Israel)|ISR)(?:\|[^{}]+|)\}\}/g, 'Israel');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ITA|Italy)|ITA)(?:\|[^{}]+|)\}\}/g, 'Italy');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:JAM|Jamaica)|JAM)(?:\|[^{}]+|)\}\}/g, 'Jamaica');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:JEY|Jersey)|JEY)(?:\|[^{}]+|)\}\}/g, 'Jersey');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:JOR|Jordan)|JOR)(?:\|[^{}]+|)\}\}/g, 'Jordan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:JPN|JAP|Japan)|JPN|JAP)(?:\|[^{}]+|)\}\}/g, 'Japan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:KAZ|Kazakhstan)|KAZ)(?:\|[^{}]+|)\}\}/g, 'Kazakhstan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:KEN|Kenya)|KEN)(?:\|[^{}]+|)\}\}/g, 'Kenya');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:KGZ|Kyrgyzstan)|KGZ)(?:\|[^{}]+|)\}\}/g, 'Kyrgyzstan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:KHM|CAM|Cambodia)|KHM|CAM)(?:\|[^{}]+|)\}\}/g, 'Cambodia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:KIR|Kiribati)|KIR)(?:\|[^{}]+|)\}\}/g, 'Kiribati');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:KNA|SKN|Saint Kitts and Nevis)|KNA|SKN)(?:\|[^{}]+|)\}\}/g, 'Saint Kitts and Nevis');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:?:KOR|ROK|(South |Republic of )Korea)|KOR|ROK)(?:\|[^{}]+|)\}\}/g, '$1Korea');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:KWT|KUW|Kuwait)|KWT|KUW)(?:\|[^{}]+|)\}\}/g, 'Kuwait');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LAO|Laos)|LAO)(?:\|[^{}]+|)\}\}/g, 'Laos');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LBN|LIB|Lebanon)|LBN|LIB)(?:\|[^{}]+|)\}\}/g, 'Lebanon');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LBR|Liberia)|LBR)(?:\|[^{}]+|)\}\}/g, 'Liberia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LBY|LBA|Libya)|LBY|LBA)(?:\|[^{}]+|)\}\}/g, 'Libya');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LCA|Saint Lucia)|LCA)(?:\|[^{}]+|)\}\}/g, 'Saint Lucia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LIE|Liechtenstein)|LIE)(?:\|[^{}]+|)\}\}/g, 'Liechtenstein');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LKA|SRI|Sri Lanka)|LKA|SRI)(?:\|[^{}]+|)\}\}/g, 'Sri Lanka');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LSO|LES|Lesotho)|LSO|LES)(?:\|[^{}]+|)\}\}/g, 'Lesotho');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LIT|LTU|Lithuania)|LIT|LTU)(?:\|[^{}]+|)\}\}/g, 'Lithuania');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LUX|Luxembourg)|LUX)(?:\|[^{}]+|)\}\}/g, 'Luxembourg');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:LVA|LAT|Latvia)|LVA|LAT)(?:\|[^{}]+|)\}\}/g, 'Latvia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MAC|Macao)|MAC)(?:\|[^{}]+|)\}\}/g, 'Macao');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MAF|Saint Martin)|MAF)(?:\|[^{}]+|)\}\}/g, 'Saint Martin');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MAR|Morocco)|MAR)(?:\|[^{}]+|)\}\}/g, 'Morocco');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MCO|MON|Monaco)|MCO|MON)(?:\|[^{}]+|)\}\}/g, 'Monaco');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MDA|MLD|Moldova)|MDA|MLD)(?:\|[^{}]+|)\}\}/g, 'Republic of Moldova');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MDG|MAD|Madagascar)|MDG|MAD)(?:\|[^{}]+|)\}\}/g, 'Madagascar');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MDV|Maldives)|MDV)(?:\|[^{}]+|)\}\}/g, 'Maldives');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MEX|M[ée]xico)|MEX)(?:\|[^{}]+|)\}\}/g, 'Mexico');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MHL|Marshall Islands)|MHL)(?:\|[^{}]+|)\}\}/g, 'Marshall Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MKD|Macedonia)|MKD)(?:\|[^{}]+|)\}\}/g, 'Macedonia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MLI|Mali)|MLI)(?:\|[^{}]+|)\}\}/g, 'Mali');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MLT|Malta)|MLT)(?:\|[^{}]+|)\}\}/g, 'Malta');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MMR|MYA|Myanmar)|MMR|MYA)(?:\|[^{}]+|)\}\}/g, 'Myanmar');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MNE|Montenegro)|MNE)(?:\|[^{}]+|)\}\}/g, 'Montenegro');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MNG|MGL|Mongolia)|MNG|MGL)(?:\|[^{}]+|)\}\}/g, 'Mongolia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MNP|NMI|Northern Mariana Islands)|MNP|NMI)(?:\|[^{}]+|)\}\}/g, 'Northern Mariana Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MOZ|Mozambique)|MOZ)(?:\|[^{}]+|)\}\}/g, 'Mozambique');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MRT|MTN|Mauritania)|MRT|MTN)(?:\|[^{}]+|)\}\}/g, 'Mauritania');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MSR|Montserrat)|MSR)(?:\|[^{}]+|)\}\}/g, 'Montserrat');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MTQ|Martinique)|MTQ)(?:\|[^{}]+|)\}\}/g, 'Martinique');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MUS|MRI|Mauritius)|MUS|MRI)(?:\|[^{}]+|)\}\}/g, 'Mauritius');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MWI|MAW|Malawi)|MWI|MAW)(?:\|[^{}]+|)\}\}/g, 'Malawi');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MYS|MAS|Malaysia)|MYS|MAS)(?:\|[^{}]+|)\}\}/g, 'Malaysia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:MYT|Mayotte)|MYT)(?:\|[^{}]+|)\}\}/g, 'Mayotte');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NAM|Namibia)|NAM)(?:\|[^{}]+|)\}\}/g, 'Namibia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NCL|New Caledonia)|NCL)(?:\|[^{}]+|)\}\}/g, 'New Caledonia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NER|NIG|Niger)|NER|NIG)(?:\|[^{}]+|)\}\}/g, 'Niger');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NFK|Norfolk Island)|NFK)(?:\|[^{}]+|)\}\}/g, 'Norfolk Island');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NIR|Northern Ireland)|NIR)(?:\|[^{}]+|)\}\}/g, 'Northern Ireland');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NGA|NGR|Nigeria)|NGA|NGR)(?:\|[^{}]+|)\}\}/g, 'Nigeria');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NIC|NCA|Nicaragua)|NIC|NCA)(?:\|[^{}]+|)\}\}/g, 'Nicaragua');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NIU|Niue)|NIU)(?:\|[^{}]+|)\}\}/g, 'Niue');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NLD|NED|(The |)Netherlands)|NLD|NED)(?:\|[^{}]+|)\}\}/g, 'Netherlands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NOR|Norway)|NOR)(?:\|[^{}]+|)\}\}/g, 'Norway');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NPL|NEP|Nepal)|NPL|NEP)(?:\|[^{}]+|)\}\}/g, 'Nepal');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NRU|Nauru)|NRU)(?:\|[^{}]+|)\}\}/g, 'Nauru');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:NZL?|New Zealand)|NZL?)(?:\|[^{}]+|)\}\}/g, 'New Zealand');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:OMN|OMA|Oman)|OMN|OMA)(?:\|[^{}]+|)\}\}/g, 'Oman');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PAK|Pakistan)|PAK)(?:\|[^{}]+|)\}\}/g, 'Pakistan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PAN|Panama)|PAN)(?:\|[^{}]+|)\}\}/g, 'Panama');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PCN|Pitcairn Islands)|PCN)(?:\|[^{}]+|)\}\}/g, 'Pitcairn Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PER|Peru)|PER)(?:\|[^{}]+|)\}\}/g, 'Peru');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PHL|PHI|Philippines)|PHL|PHI)(?:\|[^{}]+|)\}\}/g, 'Philippines');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PLW|Palau)|PLW)(?:\|[^{}]+|)\}\}/g, 'Palau');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PNG|Papua New Guinea)|PNG)(?:\|[^{}]+|)\}\}/g, 'Papua New Guinea');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:POL|Poland)|POL)(?:\|[^{}]+|)\}\}/g, 'Poland');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PRI|PUR|Puerto Rico)|PRI|PUR)(?:\|[^{}]+|)\}\}/g, 'Puerto Rico');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PRK|North Korea)|PRK)(?:\|[^{}]+|)\}\}/g, 'North Korea');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PRT|POR|Portugal)|PRT|POR)(?:\|[^{}]+|)\}\}/g, 'Portugal');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PRY|PAR|Paraguay)|PRY|PAR)(?:\|[^{}]+|)\}\}/g, 'Paraguay');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PSE|PLE|Palestinian Territory)|PSE|PLE)(?:\|[^{}]+|)\}\}/g, 'Palestinian Territory');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:PYF|French Polynesia)|PYF)(?:\|[^{}]+|)\}\}/g, 'French Polynesia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:QAT|Qatar)|QAT)(?:\|[^{}]+|)\}\}/g, 'Qatar');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:REU|Réunion)|REU)(?:\|[^{}]+|)\}\}/g, 'Réunion');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ROC|TPE|Republic of China)|ROC|TPE)(?:\|[^{}]+|)\}\}/g, 'Taiwan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ROU|ROM|Romania)|ROU|ROM)(?:\|[^{}]+|)\}\}/g, 'Romania');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:RUS|Russia)|RUS)(?:\|[^{}]+|)\}\}/g, 'Russia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:RWA|Rwanda)|RWA)(?:\|[^{}]+|)\}\}/g, 'Rwanda');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SAU|KSA|Saudi Arabia)|SAU|KSA)(?:\|[^{}]+|)\}\}/g, 'Saudi Arabia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SDN|SUD|Sudan)|SDN|SUD)(?:\|[^{}]+|)\}\}/g, 'Sudan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SCO|Scotland)|SCO)(?:\|[^{}]+|)\}\}/g, 'Scotland');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SCG|Serbia and Montenegro)|SCG)(?:\|[^{}]+|)\}\}/g, 'Serbia and Montenegro');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SEN|Senegal)|SEN)(?:\|[^{}]+|)\}\}/g, 'Senegal');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SGP|SIN|Singapore)|SGP|SIN)(?:\|[^{}]+|)\}\}/g, 'Singapore');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SGS|South Georgia and the South Sandwich Islands)|SGS)(?:\|[^{}]+|)\}\}/g, 'South Georgia and the South Sandwich Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SHN|Saint Helena, Ascension and Tristan da Cunha)|SHN)(?:\|[^{}]+|)\}\}/g, 'Saint Helena, Ascension and Tristan da Cunha');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SJM|Svalbard and Jan Mayen)|SJM)(?:\|[^{}]+|)\}\}/g, 'Svalbard and Jan Mayen');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SLB|SOL|Solomon Islands)|SLB|SOL)(?:\|[^{}]+|)\}\}/g, 'Solomon Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SLE|Sierra Leone)|SLE)(?:\|[^{}]+|)\}\}/g, 'Sierra Leone');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SLV|ESA|El Salvador)|SLV|ESA)(?:\|[^{}]+|)\}\}/g, 'El Salvador');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SMR|San Marino)|SMR)(?:\|[^{}]+|)\}\}/g, 'San Marino');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SOM|Somalia)|SOM)(?:\|[^{}]+|)\}\}/g, 'Somalia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SPM|Saint Pierre and Miquelon)|SPM)(?:\|[^{}]+|)\}\}/g, 'Saint Pierre and Miquelon');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SRB|Serbia)|SRB)(?:\|[^{}]+|)\}\}/g, 'Serbia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SSD|South Sudan)|SSD)(?:\|[^{}]+|)\}\}/g, 'South Sudan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:STP|S[aã]o Tom[eé] and Príncipe)|STP)(?:\|[^{}]+|)\}\}/g, 'Sao Tome and Principe');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SUR|Suriname)|SUR)(?:\|[^{}]+|)\}\}/g, 'Suriname');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SVK|Slovakia)|SVK)(?:\|[^{}]+|)\}\}/g, 'Slovakia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SVN|SLO|Slovenia)|SVN|SLO)(?:\|[^{}]+|)\}\}/g, 'Slovenia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SWE|Sweden)|SWE)(?:\|[^{}]+|)\}\}/g, 'Sweden');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SWZ|Swaziland)|SWZ)(?:\|[^{}]+|)\}\}/g, 'Swaziland');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SXM|Sint Maarten)|SXM)(?:\|[^{}]+|)\}\}/g, 'Sint Maarten');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SYC|SEY|Seychelles)|SYC|SEY)(?:\|[^{}]+|)\}\}/g, 'Seychelles');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:SYR|(Syrian Arab Republic|Syria))|SYR)(?:\|[^{}]+|)\}\}/g, 'Syria');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TCA|Turks and Caicos Islands)|TCA)(?:\|[^{}]+|)\}\}/g, 'Turks and Caicos Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TCH|Czechoslovakia)|TCH)(?:\|[^{}]+|)\}\}/g, 'Czechoslovakia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TCD|CHA|Chad)|TCD|CHA)(?:\|[^{}]+|)\}\}/g, 'Chad');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TGO|TOG|Togo)|TGO|TOG)(?:\|[^{}]+|)\}\}/g, 'Togo');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:THA|Thailand)|THA)(?:\|[^{}]+|)\}\}/g, 'Thailand');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TJK|Tajikistan)|TJK)(?:\|[^{}]+|)\}\}/g, 'Tajikistan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TKL|Tokelau)|TKL)(?:\|[^{}]+|)\}\}/g, 'Tokelau');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TKM|Turkmenistan)|TKM)(?:\|[^{}]+|)\}\}/g, 'Turkmenistan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TLS|East Timor|Timor.Leste)|TLS)(?:\|[^{}]+|)\}\}/g, 'East Timor');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TON|TGA|Tonga)|TON|TGA)(?:\|[^{}]+|)\}\}/g, 'Tonga');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TTO|TRI|Trinidad and Tobago)|TTO|TRI)(?:\|[^{}]+|)\}\}/g, 'Trinidad and Tobago');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TUN|Tunisia)|TUN)(?:\|[^{}]+|)\}\}/g, 'Tunisia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TUR|Turkey)|TUR)(?:\|[^{}]+|)\}\}/g, 'Turkey');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TUV|Tuvalu)|TUV)(?:\|[^{}]+|)\}\}/g, 'Tuvalu');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TWN|Taiwan)|TWN)(?:\|[^{}]+|)\}\}/g, 'Taiwan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:TZA|TAN|Tanzania)|TZA|TAN)(?:\|[^{}]+|)\}\}/g, 'Tanzania');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:UGA|Uganda)|UGA)(?:\|[^{}]+|)\}\}/g, 'Uganda');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:UKR|Ukraine)|UKR)(?:\|[^{}]+|)\}\}/g, 'Ukraine');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:UMI|United States Minor Outlying Islands)|UMI)(?:\|[^{}]+|)\}\}/g, 'United States Minor Outlying Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:URY|URU|Uruguay)|URY|URU)(?:\|[^{}]+|)\}\}/g, 'Uruguay');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:URS|Soviet Union|USSR)|URS)(?:\|[^{}]+|)\}\}/g, 'Soviet Union');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:USA?|United States(?: of America|))|USA?|U\.S\.)(?:\|[^{}]+|)\}\}/g, 'United States');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:UZB|Uzbekistan)|UZB)(?:\|[^{}]+|)\}\}/g, 'Uzbekistan');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:VAT|Vatican City)|VAT)(?:\|[^{}]+|)\}\}/g, 'Vatican City');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:VCT|VIN|Saint Vincent and the Grenadines)|VCT|VIN)(?:\|[^{}]+|)\}\}/g, 'Saint Vincent and the Grenadines');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:VEN|Venezuela)|VEN)(?:\|[^{}]+|)\}\}/g, 'Venezuela');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:VGB|IVB|British Virgin Islands)|VGB|IVB)(?:\|[^{}]+|)\}\}/g, 'British Virgin Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:VIR|ISV|United States Virgin Islands)|VIR|ISV)(?:\|[^{}]+|)\}\}/g, 'United States Virgin Islands');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:VNM|VIE|Viet ?[Nn]am)|VNM|VIE)(?:\|[^{}]+|)\}\}/g, 'Vietnam');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:VUT|VAN|Vanuatu)|VUT|VAN)(?:\|[^{}]+|)\}\}/g, 'Vanuatu');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:WAL|Wales)|WAL)(?:\|[^{}]+|)\}\}/g, 'Wales');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:WLF|Wallis and Futuna)|WLF)(?:\|[^{}]+|)\}\}/g, 'Wallis and Futuna');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:WSM|Samoa)|WSM)(?:\|[^{}]+|)\}\}/g, 'Samoa');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:YEM|Yemen)|YEM)(?:\|[^{}]+|)\}\}/g, 'Yemen');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:(?:FR-|)YUG|Yugoslavia)|(?:FR-|)YUG)(?:\|[^{}]+|)\}\}/g, 'Yugoslavia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ZAF|RSA|South Africa)|ZAF|RSA)(?:\|[^{}]+|)\}\}/g, 'South Africa');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ZAI|Zaire)|ZAI)(?:\|[^{}]+|)\}\}/g, 'Zaire');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ZMB|ZAM|Zambia)|ZMB|ZAM)(?:\|[^{}]+|)\}\}/g, 'Zambia');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:ZWE|ZIM|Zimbabwe)|ZWE|ZIM)(?:\|[^{}]+|)\}\}/g, 'Zimbabwe');
 
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:EU|European Union)|EU)(?:\|[^{}]+|)\}\}/g, 'European Union');
regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:UNO|United Nations)|UNO)(?:\|[^{}]+|)\}\}/g, 'United Nations');
 
// regex(/\{\{(?:flag(?:country|u?)\|[ ]*(?:[^|]*\|)\s*name=([^{}]*))\}\}/gi, '$1');