Open braco opened 6 years ago
Hi, I'm having this same error whenever I use the country
function for 3 character strings. When a value is provided that does not match with any alpha-3 country code an error is thrown with message Cannot read property 'toUpperCase' of undefined
. This is due to this:
https://github.com/olahol/iso-3166-2.js/blob/master/functions.js#L89
and then
https://github.com/olahol/iso-3166-2.js/blob/master/functions.js#L103
TypeError: Cannot read property 'toUpperCase' of undefined at Object.country (node_modules/iso-3166-2/iso3166.min.js:9:17735)