Skip to content

Commit 302d295

Browse files
authored
fix(isMobilePhone): update es-CO locale (#1541)
1 parent 5810e36 commit 302d295

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/lib/isMobilePhone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const phones = {
5656
'en-ZW': /^(\+263)[0-9]{9}$/,
5757
'es-AR': /^\+?549(11|[2368]\d)\d{8}$/,
5858
'es-BO': /^(\+?591)?(6|7)\d{7}$/,
59-
'es-CO': /^(\+?57)?([1-8]{1}|3[0-9]{2})?[2-9]{1}\d{6}$/,
59+
'es-CO': /^(\+?57)?([1-8]{1}|3[0-9]{2})?[0-9]{1}\d{6}$/,
6060
'es-CL': /^(\+?56|0)[2-9]\d{1}\d{7}$/,
6161
'es-CR': /^(\+506)?[2-8]\d{7}$/,
6262
'es-DO': /^(\+?1)?8[024]9\d{7}$/,

test/validators.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6436,6 +6436,8 @@ describe('Validators', () => {
64366436
'5784321235',
64376437
'5784321235',
64386438
'9821235',
6439+
'573011140876',
6440+
'0698345',
64396441
],
64406442
invalid: [
64416443
'1234',
@@ -6447,7 +6449,6 @@ describe('Validators', () => {
64476449
'5714003425432',
64486450
'5703013347567',
64496451
'069834567',
6450-
'0698345',
64516452
'969834567',
64526453
],
64536454
},

validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3811,7 +3811,7 @@ var phones = {
38113811
'en-ZW': /^(\+263)[0-9]{9}$/,
38123812
'es-AR': /^\+?549(11|[2368]\d)\d{8}$/,
38133813
'es-BO': /^(\+?591)?(6|7)\d{7}$/,
3814-
'es-CO': /^(\+?57)?([1-8]{1}|3[0-9]{2})?[2-9]{1}\d{6}$/,
3814+
'es-CO': /^(\+?57)?([1-8]{1}|3[0-9]{2})?[0-9]{1}\d{6}$/,
38153815
'es-CL': /^(\+?56|0)[2-9]\d{1}\d{7}$/,
38163816
'es-CR': /^(\+506)?[2-8]\d{7}$/,
38173817
'es-DO': /^(\+?1)?8[024]9\d{7}$/,

validator.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)