Skip to content

Commit

Permalink
fix(isMobilePhone): re-add es-HN fix from #1983 (#2129)
Browse files Browse the repository at this point in the history
The fix was accidentally removed in #1986
  • Loading branch information
WikiRik authored Jan 22, 2023
1 parent dcb6cb6 commit d8f3a24
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 @@ -77,7 +77,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 @@ -8280,6 +8280,10 @@ describe('Validators', () => {
'+50489234567',
'+50488987896',
'+50497567389',
'+50427367389',
'+50422357389',
'+50431257389',
'+50430157389',
],
invalid: [
'12345',
Expand Down

0 comments on commit d8f3a24

Please sign in to comment.