Skip to content

Commit

Permalink
fix(isMobilePhone): add new prefix for bn-BD (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim authored and profnandaa committed Oct 6, 2019
1 parent 72d9f55 commit 3087572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Expand Up @@ -14,7 +14,7 @@ const phones = {
'ar-TN': /^(\+?216)?[2459]\d{7}$/,
'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/,
'bg-BG': /^(\+?359|0)?8[789]\d{7}$/,
'bn-BD': /^(\+?880|0)1[1356789][0-9]{8}$/,
'bn-BD': /^(\+?880|0)1[13456789][0-9]{8}$/,
'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
'de-DE': /^(\+49)?0?1(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7}$/,
Expand Down
2 changes: 1 addition & 1 deletion test/validators.js
Expand Up @@ -3862,13 +3862,13 @@ describe('Validators', () => {
'01717112029',
'8801898765432',
'+8801312345678',
'01494676946',
],
invalid: [
'',
'0174626346',
'017943563469',
'18001234567',
'01494676946',
'0131234567',
],
},
Expand Down

0 comments on commit 3087572

Please sign in to comment.