We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b82a6 commit ee7de47Copy full SHA for ee7de47
src/lib/geo_location_utils.js
@@ -51,7 +51,7 @@ function countryNameToISO3(countryName) {
51
var iso3 = countryIds[i],
52
regex = new RegExp(countryRegex[iso3]);
53
54
- if(regex.test(countryName.toLowerCase())) return iso3;
+ if(regex.test(countryName.trim().toLowerCase())) return iso3;
55
}
56
57
Lib.warn('Unrecognized country name: ' + countryName + '.');
0 commit comments