grantila / awesome-phonenumber

Google's libphonenumber pre-compiled with the closure compiler
MIT License
653 stars 54 forks source link

getExample causes a runtime error on some countries #113

Closed adamhinckley closed 2 weeks ago

adamhinckley commented 9 months ago

One example of this

getExample("AQ")  //Antarctica

This is an issue in my case because we want to have every country on earth available in our phone input. I realize this library likely isn't intended work for every country on earth, but I would like to not get a runtime error when an obscure place like Antarctica is selected.

Thanks!

adamhinckley commented 9 months ago

Mistake on my part: I failed to realize that getSupportedRegionCodes was something I could use only allow for supported countries to be used in the input.

grantila commented 2 weeks ago

No worries, glad you figured it out!