Skip to content

Commit d8f3a24

Browse files
authored
fix(isMobilePhone): re-add es-HN fix from #1983 (#2129)
The fix was accidentally removed in #1986
1 parent dcb6cb6 commit d8f3a24

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/lib/isMobilePhone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const phones = {
7777
'es-CR': /^(\+506)?[2-8]\d{7}$/,
7878
'es-CU': /^(\+53|0053)?5\d{7}/,
7979
'es-DO': /^(\+?1)?8[024]9\d{7}$/,
80-
'es-HN': /^(\+?504)?[9|8]\d{7}$/,
80+
'es-HN': /^(\+?504)?[9|8|3|2]\d{7}$/,
8181
'es-EC': /^(\+?593|0)([2-7]|9[2-9])\d{7}$/,
8282
'es-ES': /^(\+?34)?[6|7]\d{8}$/,
8383
'es-PE': /^(\+?51)?9\d{8}$/,

test/validators.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8280,6 +8280,10 @@ describe('Validators', () => {
82808280
'+50489234567',
82818281
'+50488987896',
82828282
'+50497567389',
8283+
'+50427367389',
8284+
'+50422357389',
8285+
'+50431257389',
8286+
'+50430157389',
82838287
],
82848288
invalid: [
82858289
'12345',

0 commit comments

Comments
 (0)