Skip to content
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

00-prefixed international numbers don't parse #29

Open
rubdos opened this issue Nov 20, 2020 · 2 comments
Open

00-prefixed international numbers don't parse #29

rubdos opened this issue Nov 20, 2020 · 2 comments
Labels
Milestone

Comments

@rubdos
Copy link
Member

rubdos commented Nov 20, 2020

let n = "0032474123456";
assert!(phonenumber::parse(None, n).is_ok());

I would expect this to yield +32474123456, but it seemingly does not: it yields InvalidCountryCode (which could've parsed as Belgium instead).

@rustonaut
Copy link
Collaborator

rustonaut commented Nov 20, 2020 via email

@rustonaut
Copy link
Collaborator

rustonaut commented Nov 20, 2020 via email

@rustonaut rustonaut added this to the Bugs so many Bugs milestone Apr 11, 2021
@rustonaut rustonaut added the bug label Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants