Skip to content

Commit

Permalink
feat: isMobilePhone en-GB enhance (validatorjs#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihmpavel authored Jun 1, 2024
1 parent 79f5d18 commit 15e3738
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const phones = {
'en-AG': /^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,
'en-BM': /^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,
'en-BS': /^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,
'en-GB': /^(\+?44|0)7\d{9}$/,
'en-GB': /^(\+?44|0)7[1-9]\d{8}$/,
'en-GG': /^(\+?44|0)1481\d{6}$/,
'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,
'en-GY': /^(\+592|0)6\d{6}$/,
Expand Down
3 changes: 3 additions & 0 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8221,6 +8221,9 @@ describe('Validators', () => {
'+443003434751',
'05073456754',
'08001123123',
'07043425232',
'01273884231',
'03332654034',
],
},
{
Expand Down

0 comments on commit 15e3738

Please sign in to comment.