Skip to content

Commit

Permalink
Merge pull request #1 from rezk2ll/validatorjs#2513
Browse files Browse the repository at this point in the history
🐛 fix(isMobilePhone): fix Cyprus mobile phone numbers validation
  • Loading branch information
rezk2ll authored Jan 7, 2025
2 parents 86911d8 + fa32c6b commit 053ba05
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -33,7 +33,7 @@ const phones = {
'de-LU': /^(\+352)?((6\d1)\d{6})$/,
'dv-MV': /^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,
'el-GR': /^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,
'el-CY': /^(\+?357?)?(9(9|6)\d{6})$/,
'el-CY': /^(\+?357?)?(9(9|7|6|5|4)\d{6})$/,
'en-AI': /^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,
'en-AU': /^(\+?61|0)4\d{8}$/,
'en-AG': /^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,
Expand Down
5 changes: 5 additions & 0 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8714,6 +8714,11 @@ describe('Validators', () => {
'+3599148725',
'96537247',
'3596676533',
'+35795123455',
'+35797012204',
'35799123456',
'+35794123456',
'+35796123456',
],
invalid: [
'',
Expand Down

0 comments on commit 053ba05

Please sign in to comment.