Skip to content

Commit

Permalink
Merge pull request #1 from ademyan05/fix/Honduras_enhancement
Browse files Browse the repository at this point in the history
fix(Honduras_enhancement): fix for isMobilePhone Honduras locale
  • Loading branch information
ademyan05 authored Jun 11, 2022
2 parents cfcf911 + d88c7b6 commit 68ea9c4
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -69,7 +69,7 @@ const phones = {
'es-CR': /^(\+506)?[2-8]\d{7}$/,
'es-CU': /^(\+53|0053)?5\d{7}/,
'es-DO': /^(\+?1)?8[024]9\d{7}$/,
'es-HN': /^(\+?504)?[9|8]\d{7}$/,
'es-HN': /^(\+?504)?[9|8|3|2]\d{7}$/,
'es-EC': /^(\+?593|0)([2-7]|9[2-9])\d{7}$/,
'es-ES': /^(\+?34)?[6|7]\d{8}$/,
'es-PE': /^(\+?51)?9\d{8}$/,
Expand Down
4 changes: 4 additions & 0 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -7623,6 +7623,10 @@ describe('Validators', () => {
'+50489234567',
'+50488987896',
'+50497567389',
'+50427367389',
'+50422357389',
'+50431257389',
'+50430157389',
],
invalid: [
'12345',
Expand Down

0 comments on commit 68ea9c4

Please sign in to comment.