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

Issue with Kuwait number #279

Closed
MagdEldinr opened this issue Aug 6, 2023 · 1 comment
Closed

Issue with Kuwait number #279

MagdEldinr opened this issue Aug 6, 2023 · 1 comment
Labels

Comments

@MagdEldinr
Copy link

I'm trying to validate this number +96557558430 and i'm sure it's a valid Kuwaiti number, however the validation returns False

@daviddrysdale
Copy link
Owner

Works with current code.

Python 3.7.6 (default, Jan  8 2020, 13:42:34) 
>>> import phonenumbers
>>> x = phonenumbers.parse("+96557558430", "")
>>> phonenumbers.is_valid_number(x)
True
>>> x
PhoneNumber(country_code=965, national_number=57558430, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=0, preferred_domestic_carrier_code=None)
>>> phonenumbers.__version__
'8.13.18'

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