Closed paulmasson closed 4 years ago
@paulmasson
Good catch! I had seen the faulty output and wondered why
@paulmasson
not very scientific, but seems to work:
response = response.replace( /Korea,/, "Korea" ).replace( /Virgin Islands,/, "Virgin Islands");
@theo-armour please replace Korea, South
with South Korea
for legibility. I'd do a PR for this but I know from past collaboration that you'll likely overwrite my changes.
@theo-armour the country name is given as
"Korea, South"
in double quotes with a comma included. You can't just split on commas without massaging the data first.