Closed teddyhwang closed 9 years ago
Fair enough. I was unaware that multiple countries could have the same ISO code. That call should probably return an array of countries, rather than a single object. I'll take a look at that today.
FYI, there are several other calls (e.g country.name
) that would have the same problem.
I am aware. The fix I'm rolling would effect all searches.
:+1:
Also, be aware, we also have a possibly large API change in the works, the fix for this will most likely be rolled with that one. refer #19
A fix for this has been pushed into the release/2.0.0-alpha
branch. Feel free to use that branch if you need the change quickly, but as it entails a major API change, I can't publish it just yet to NPM. Once we've finished up the work in #19, I'll roll v2.0.0
to a full release.
United Kingdom and Scotland has the same ISO code of
GB
andGBR
. Any countries that call uponGB
conflict with the two entries and the Scotland data is returned first.