-
Notifications
You must be signed in to change notification settings - Fork 37
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
Missing phone number types #68
Comments
that's because those number types are currently unsupported, support must be added by the community. Here is someone adding voip support for reference |
Ok. I'll see about making a PR adding the missing types |
I'd suggest making a first PR for the metadata that converts the original metadata into dart class to add the necessary information, that part should be somewhat straight forward. After that a second PR for the library to use those values. This is going to be much easier to review |
@cedvdb could you update the upstream package with the recent changes? |
available in v8.3.0 |
There are some number types which are missing in this library. This causes valid number types to be marked as invalid.
For example, take the US phone number metadata. In this library it is defined by this object:
Here we can find there a 2 number types defined.
Now, looking at the metadate for US phone number on iOS' PhoneNumberKit:
We can see there are 3 number formats that are missing in this library: "tollFree", "premiumRate" and "personalNumber".
Due to this, a valid US phone number like 1 800-934-6489 is parsed as an invalid number.
The text was updated successfully, but these errors were encountered: