Skip to content

Commit cec8841

Browse files
Mostafa Kamalchriso
Mostafa Kamal
authored andcommittedOct 21, 2018
fix(isMobilePhone): fix bn-BD locale prefixes (#913)
1 parent 0031015 commit cec8841

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/lib/isMobilePhone.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const phones = {
1313
'ar-TN': /^(\+?216)?[2459]\d{7}$/,
1414
'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/,
1515
'bg-BG': /^(\+?359|0)?8[789]\d{7}$/,
16-
'bn-BD': /\+?(88)?0?1[156789][0-9]{8}\b/,
16+
'bn-BD': /\+?(88)?0?1[356789][0-9]{8}\b/,
1717
'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
1818
'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
1919
'de-DE': /^(\+?49[ \.\-]?)?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,

‎test/validators.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3507,7 +3507,7 @@ describe('Validators', () => {
35073507
locale: 'bn-BD',
35083508
valid: [
35093509
'+8801794626846',
3510-
'01199098893',
3510+
'01399098893',
35113511
'8801671163269',
35123512
'01717112029',
35133513
],

0 commit comments

Comments
 (0)
Please sign in to comment.