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

French phone number starting with 07 or +337 are not working #86

Open
monisnap-jeremie opened this issue Nov 15, 2024 · 2 comments
Open

Comments

@monisnap-jeremie
Copy link

Hello 👋

I am facing an issue with french phone number starting with +33 7 or 07.

It seems this is not valid.

I am using Flutter with flutter_libphonenumber: 2.5.0 package, pod "PhoneNumberKit", '3.8.0' on iOS.

Is it a shared issue or am I doing anything wrong?

@jlethuau
Copy link

jlethuau commented Jan 6, 2025

Hi @monisnap-jeremie ! Did you eventually find out how to solve your problem? Regards

@monisnap-jeremie
Copy link
Author

Hi @jlethuau,

We have added a temporary hot fix in our code :

    if (isValid == false && countryCode == 'FR') {
      isValid = RegExp(r'(6|7|06|07)\d{8}').hasMatch(phoneNumber);
    }

Considering isValid as a boolean that is set after libphonenumber.parse() call and countryCode as the value set by the user when filling its phone number.

We hope to have an update someday 😅

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

No branches or pull requests

2 participants