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

Number is normalized incorrectly in some cases #522

Open
IvanSelivanov opened this issue Feb 14, 2024 · 0 comments
Open

Number is normalized incorrectly in some cases #522

IvanSelivanov opened this issue Feb 14, 2024 · 0 comments

Comments

@IvanSelivanov
Copy link

There is a number of phone numbers in Tajikistan (all of them belong to Megafon company) that look like +992 88 ..., i. e. +992 88 123 4567. While normalizing, Phony splits the number in two parts, the country code and the national number, and then rejects '8' as it thinks it's a trunk code, but it isn't, which results in incorrect output

What I did

Phony.normalize('+992 88 123 4567')

What happened

=> "99281234567"

What I expected to happen and why

=> "992*8*81234567"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant