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

fix: use significant part of number instead of national #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

merceyz
Copy link
Contributor

@merceyz merceyz commented Mar 20, 2020

What's the problem this PR addresses?

When switching between some countries, a valid number with a prefix gets a zero prepended to it causing the number to become invalid. In my case switching from Norway to Sweden and back to Norway causes a valid number to become invalid

How did you fix it?

Use the significant part of the number, instead of national

@merceyz merceyz changed the title fix: use significant instead of national fix: use significant part of number instead of national Mar 20, 2020
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 this pull request may close these issues.

1 participant