Skip to content

Commit 4b8eac5

Browse files
authored
fix(isMobilePhone): update az-AZ (#1910)
1 parent 495a175 commit 4b8eac5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/lib/isMobilePhone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const phones = {
1818
'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/,
1919
'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/,
2020
'ar-TN': /^(\+?216)?[2459]\d{7}$/,
21-
'az-AZ': /^(\+994|0)(5[015]|7[07]|99)\d{7}$/,
21+
'az-AZ': /^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,
2222
'bs-BA': /^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,
2323
'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/,
2424
'bg-BG': /^(\+?359|0)?8[789]\d{7}$/,

test/validators.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8499,8 +8499,10 @@ describe('Validators', () => {
84998499
'+994502111111',
85008500
'0505436743',
85018501
'0554328772',
8502+
'0104328772',
85028503
'0993301022',
85038504
'+994776007139',
8505+
'+994106007139',
85048506
],
85058507
invalid: [
85068508
'wrong-number',

0 commit comments

Comments
 (0)