Skip to content

Commit

Permalink
feat:(isMobilePhone): add mobile number prefix 010 to az-AZ
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaan Aliyev committed Jan 21, 2022
1 parent f055c11 commit 494854f
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 @@ -8461,8 +8461,10 @@ describe('Validators', () => {
'+994502111111',
'0505436743',
'0554328772',
'0104328772',
'0993301022',
'+994776007139',
'+994106007139',
],
invalid: [
'wrong-number',
Expand Down

0 comments on commit 494854f

Please sign in to comment.