Skip to content

Commit 50765f8

Browse files
committed
fix(isPostalCode): update regex for Bangladesh postal code validation
1 parent f01e9ef commit 50765f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/isPostalCode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const patterns = {
1212
AU: fourDigit,
1313
AZ: /^AZ\d{4}$/,
1414
BA: /^([7-8]\d{4}$)/,
15-
BD: /^(1[0-9]{3}|[2-8][0-9]{3}|9[0-4][0-9]{2})$/,
15+
BD: /^([1-8][0-9]{3}|9[0-4][0-9]{2})$/,
1616
BE: fourDigit,
1717
BG: fourDigit,
1818
BR: /^\d{5}-?\d{3}$/,

0 commit comments

Comments
 (0)