From cba73cd4e7c712a8e1051273d6b6df006eb1ba10 Mon Sep 17 00:00:00 2001 From: tmont Date: Fri, 11 Feb 2022 01:39:17 -0800 Subject: [PATCH] added winter olympics 2022 and antarctica to country map --- generate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate.js b/generate.js index 161fd25..8e0b742 100755 --- a/generate.js +++ b/generate.js @@ -60,7 +60,7 @@ const lastUpdate = new Date(lastGlobalDeathsUpdate > lastUSDeathsUpdate ? ); const zeroPad = value => value < 10 ? `0${value}` : value.toString(); -const toSafeName = x => x.replace(/[^A-Za-z]/g, '-').toLowerCase(); +const toSafeName = x => x.replace(/[^A-Za-z0-9]/g, '-').toLowerCase(); const processRecords = async () => { const globalStart = Date.now(); @@ -178,6 +178,8 @@ const processRecords = async () => { countryPopulationMap['Diamond Princess'] = statePopulationMap['Diamond Princess'] = 3711; countryPopulationMap['MS Zaandam'] = 1829; countryPopulationMap['Kosovo'] = 1810463; + countryPopulationMap['Antarctica'] = 3250; // https://worldpopulationreview.com/continents/antarctica-population + countryPopulationMap['Winter Olympics 2022'] = 2900; statePopulationMap['Grand Princess'] = 3533; if (statePopulationMap['Puerto Rico Commonwealth']) { statePopulationMap['Puerto Rico'] = statePopulationMap['Puerto Rico Commonwealth'];