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

parsing error #114

Closed
vvknain opened this issue Feb 22, 2018 · 1 comment
Closed

parsing error #114

vvknain opened this issue Feb 22, 2018 · 1 comment
Labels

Comments

@vvknain
Copy link

vvknain commented Feb 22, 2018

In [41]: x = phonenumbers.parse('+917878787xyz', None)

In [42]: print x
Country Code: 91 National Number: 7878787999

i couldn't find a way to to workaround this problem. Any help?

@daviddrysdale
Copy link
Owner

You don't actually say what your 'error' or 'problem' is, but I'm guessing it's that the 'xyz' at the end is being parsed as a vanity number.

The Python code behaves the same as the Java code, and I believe this is deliberate behaviour on their part -- see googlei18n/libphonenumber#1199 for more information.

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