-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some countries are missing #73
Comments
Although your proposal is good and is likely to be implemented, the code you're using is wrong: <!-- Bulgaria -->
<territory id="BG" countryCode="359" internationalPrefix="00"
nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
mobileNumberPortableRegion="true"> |
The code I am using is exactly this :
Can you let me know how am I using this wrong? The version of the library I am using is 0.4.9 |
It is |
catamphetamine
pushed a commit
that referenced
this issue
May 1, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to use the
getPhoneCode
method for Bulgaria (country code 'BU') and the library have failed with an error breaking the page.I have noticed that the https://github.com/halt-hammerzeit/libphonenumber-js/blob/master/metadata.min.json does not include BU as a country.
I could go and regenerate the metadata file to get that country code from the Google library, but I think it would be nicer to have some kind of handling country codes that are not supported in a better way. Some examples are :
The text was updated successfully, but these errors were encountered: