Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const phones = {
'es-PE': /^(\+?51)?9\d{8}$/,
'es-MX': /^(\+?52)?(1|01)?\d{10,11}$/,
'es-NI': /^(\+?505)\d{7,8}$/,
'es-PA': /^(\+?507)\d{7,8}$/,
'es-PA': /^(\+?507)6\d{3}-?\d{4}$/,
'es-PY': /^(\+?595|0)9[9876]\d{7}$/,
'es-SV': /^(\+?503)?[67]\d{7}$/,
'es-UY': /^(\+598|0)9[1-9][\d]{6}$/,
Expand Down
13 changes: 9 additions & 4 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9588,17 +9588,22 @@ describe('Validators', () => {
{
locale: 'es-PA',
valid: [
'+5076784565',
'+5074321557',
'5073331112',
'+50723431212',
'+50761234567',
'+50768456789',
'50762345678',
'+5076123-4567',
'+50769876543',
],
invalid: [
'+50755555',
'+207123456',
'2001236542',
'+507987643254',
'+507jjjghtf',
'+50712345678',
'+5073456789',
'+507234312',
'+50751234567',
],
},
{
Expand Down
Loading