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

Danish mobile numbers not fully recognized in version 25.3.0 #1956

Open
Tofu-Sauvage opened this issue Feb 4, 2025 · 1 comment
Open

Danish mobile numbers not fully recognized in version 25.3.0 #1956

Tofu-Sauvage opened this issue Feb 4, 2025 · 1 comment

Comments

@Tofu-Sauvage
Copy link

Hello,

First of all, thank you for your great library!

I have integrated it into a WordPress project and encountered an issue with Danish mobile numbers.

  • In version 24.6.0, Danish mobile numbers were not recognized at all.

  • After updating to version 25.3.0, only numbers starting with 60-xx-xx-xx are recognized, while Danish mobile numbers can start with different prefixes (see Wikipedia: Telephone_numbers_in_Denmark).

Would it be possible to update the library to support all valid Danish mobile prefixes?

Thank you for your time and consideration!

Best regards,
Charlotte

@jackocnr
Copy link
Owner

We use libphonenumber for formatting, validation and generating placeholder numbers - if your issue relates to one of these things, please check their test site first and if you see the problem there please file an issue with them instead.

If it's working correctly in libphonenumber, the next step is to check that we're using the latest version of libphonenumber in the plugin - check the version history here. If we need to upgrade, it only takes 5 minutes to do this yourself and submit a Pull Request - instructions here: Updating to a new version of libphonenumber.

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