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

UK (GB) Number validation is failing #143

Open
rparsh opened this issue May 9, 2024 · 1 comment
Open

UK (GB) Number validation is failing #143

rparsh opened this issue May 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rparsh
Copy link
Member

rparsh commented May 9, 2024

Bug Summary

Describe the issue encountered concisely but informative.

IsValidNumber throwing error for UK valid phone number. There seems to be an issue with the regex.

Can we update the regex based on https://stackoverflow.com/a/11518538

https://regex101.com/r/IMfzkx/1

Valid Phone number like +442071234567 showing invalid

Code Snippet / Configuration (if applicable)

Include any relevant code snippets or configuration related to the bug.

isValidPhoneNumber('2071234567', 'GB') 
@rparsh rparsh added the bug Something isn't working label May 9, 2024
@Siddhant-Kashyap
Copy link

This has been resolve now so we can close this !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants