Skip to content

Commit

Permalink
fix(isMobilePhone): fix bn-BD locale prefixes (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mostafa Kamal authored and chriso committed Oct 21, 2018
1 parent 0031015 commit cec8841
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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': /\+?(88)?0?1[156789][0-9]{8}\b/,
'bn-BD': /\+?(88)?0?1[356789][0-9]{8}\b/,
'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[ \.\-]?)?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
Expand Down
2 changes: 1 addition & 1 deletion test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -3507,7 +3507,7 @@ describe('Validators', () => {
locale: 'bn-BD',
valid: [
'+8801794626846',
'01199098893',
'01399098893',
'8801671163269',
'01717112029',
],
Expand Down

0 comments on commit cec8841

Please sign in to comment.