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

ukmobilephone validator should support +44 prefix #483

Open
robertdeniszczyc2 opened this issue Oct 22, 2024 · 1 comment · May be fixed by #488
Open

ukmobilephone validator should support +44 prefix #483

robertdeniszczyc2 opened this issue Oct 22, 2024 · 1 comment · May be fixed by #488

Comments

@robertdeniszczyc2
Copy link
Contributor

Problem

The ukmobilephone validator currently has a regex which validates against numbers starting with 07.

A UK mobile phone number could be formatted using the international dialling code which is the +44 prefix, replacing the leading 0.

Example (demo phone number):
07700900000 === +447700900000

Solution

Extend the ukmobilephone validator to pass validation whether the provided number follows the 07x or +447x format.

Update the tests for the validator to reflect the change.

@robertdeniszczyc2 robertdeniszczyc2 linked a pull request Dec 12, 2024 that will close this issue
@sulthan-ahmed
Copy link
Contributor

Hi @robertdeniszczyc2 thanks to @Rhodine-orleans-lindsay here is a published beta package 22.0.2-ukmobilephone-validator-beta

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 a pull request may close this issue.

2 participants