Skip to content

Commit

Permalink
fix(isMobilePhone): update az-AZ (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
seabeya authored Apr 22, 2022
1 parent 495a175 commit 4b8eac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions 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 @@ -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}$/,
Expand Down
2 changes: 2 additions & 0 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -8499,8 +8499,10 @@ describe('Validators', () => {
'+994502111111',
'0505436743',
'0554328772',
'0104328772',
'0993301022',
'+994776007139',
'+994106007139',
],
invalid: [
'wrong-number',
Expand Down

0 comments on commit 4b8eac5

Please sign in to comment.