Skip to content

Commit

Permalink
Updating Regular Expression for Validating Panamanian Phone Numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Montes committed Jul 25, 2024
1 parent 1f159ea commit c589c9d
Showing 1 changed file with 1 addition 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 @@ -87,7 +87,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)?\s?(?:6\d{3}-?\d{4}|2\d{2}-?\d{4}|2\d{6})$/`,

Check failure on line 90 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 20

Strings must use singlequote

Check failure on line 90 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 18

Strings must use singlequote

Check failure on line 90 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 16

Strings must use singlequote

Check failure on line 90 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 14

Strings must use singlequote

Check failure on line 90 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 12

Strings must use singlequote

Check failure on line 90 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 10

Strings must use singlequote

Check failure on line 90 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 8

Strings must use singlequote
'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

0 comments on commit c589c9d

Please sign in to comment.