diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js index f3a49d99a..e19184ba9 100644 --- a/src/lib/isMobilePhone.js +++ b/src/lib/isMobilePhone.js @@ -18,7 +18,7 @@ const phones = { 'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/, 'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/, 'ar-TN': /^(\+?216)?[2459]\d{7}$/, - 'az-AZ': /^(\+994|0)(5[015]|7[07]|99)\d{7}$/, + 'az-AZ': /^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/, 'bs-BA': /^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/, 'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/, 'bg-BG': /^(\+?359|0)?8[789]\d{7}$/, diff --git a/test/validators.js b/test/validators.js index 60f004fe7..92fbb4a75 100644 --- a/test/validators.js +++ b/test/validators.js @@ -8499,8 +8499,10 @@ describe('Validators', () => { '+994502111111', '0505436743', '0554328772', + '0104328772', '0993301022', '+994776007139', + '+994106007139', ], invalid: [ 'wrong-number',