-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Marcin Rataj <lidel@lidel.org>
- Loading branch information
1 parent
d8cd0f8
commit 670b55b
Showing
11 changed files
with
10,520 additions
and
10,582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ stages: | |
|
||
node_js: | ||
- '12' | ||
- '10' | ||
- 'lts/*' | ||
|
||
os: | ||
- linux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
'use strict' | ||
|
||
// Source data is not perfect, below are manual overrides applied to geo names | ||
const overrides = new Map([ | ||
// ['original', 'override'] | ||
['Antigua And Barbuda', 'Antigua and Barbuda'], | ||
['Bosnia & Herzegovina', 'Bosnia and Herzegovina'], | ||
['Bolivia, Plurinational State Of', 'Bolivia'], | ||
['Bonaire, Saint Eustatius And Saba', 'Bonaire, Saint Eustatius and Saba'], | ||
['Democratic Republic Of Congo', 'Democratic Republic of Congo'], | ||
['Republic Of Congo', 'Republic of Congo'], | ||
['Czech Republic', 'Czechia'], | ||
['Ceuta, Mulilla', 'Ceuta and Mulilla'], | ||
['Micronesia, Federated States Of', 'Micronesia'], | ||
['France, Metropolitan', 'Metropolitan France'], | ||
['South Georgia And The South Sandwich Islands', 'South Georgia and the South Sandwich Islands'], | ||
['Guinea-bissau', 'Guinea-Bissau'], | ||
['Heard Island And McDonald Islands', 'Heard Island and McDonald Islands'], | ||
['Isle Of Man', 'Isle of Man'], | ||
['Iran, Islamic Republic Of', 'Iran'], | ||
['Saint Kitts And Nevis', 'Saint Kitts and Nevis'], | ||
["Korea, Democratic People's Republic Of", 'DPR Korea'], | ||
['Korea, Republic Of', 'Republic of Korea'], | ||
["Lao People's Democratic Republic", 'Laos'], | ||
['Macedonia, The Former Yugoslav Republic Of', 'North Macedonia'], | ||
['Saint Pierre And Miquelon', 'Saint Pierre and Miquelon'], | ||
['Palestinian Territory, Occupied', 'Palestine'], | ||
['Saint Helena, Ascension And Tristan Da Cunha', 'Saint Helena, Ascension and Tristan da Cunha'], | ||
['Svalbard And Jan Mayen', 'Svalbard and Jan Mayen'], | ||
['Syrian Arab Republic', 'Syria'], | ||
['Turks And Caicos Islands', 'Turks and Caicos Islands'], | ||
['Tristan de Cunha', 'Tristan da Cunha'], | ||
['Trinidad And Tobago', 'Trinidad and Tobago'], | ||
['Taiwan, Province Of China', 'Taiwan'], | ||
['Tanzania, United Republic Of', 'Tanzania'], | ||
['United States', 'USA'], | ||
['Vatican City State', 'Vatican City'], | ||
['Saint Vincent And The Grenadines', 'Saint Vincent and the Grenadines'], | ||
['Venezuela, Bolivarian Republic Of', 'Venezuela'], | ||
['Virgin Islands (British)', 'British Virgin Islands'], | ||
['Virgin Islands (US)', 'US Virgin Islands'], | ||
['Viet Nam', 'Vietnam'], | ||
['Wallis And Futuna', 'Wallis and Futuna'] | ||
]) | ||
|
||
module.exports = function normalizeName (name) { | ||
if (overrides.has(name)) return overrides.get(name) | ||
return name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.