Skip to content

Commit d8c93d2

Browse files
authored
feat(isIBAN): add Algeria locale (validatorjs#2320)
1 parent 11ac6a4 commit d8c93d2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib/isIBAN.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const ibanRegexThroughCountryCode = {
2424
DE: /^(DE[0-9]{2})\d{18}$/,
2525
DK: /^(DK[0-9]{2})\d{14}$/,
2626
DO: /^(DO[0-9]{2})[A-Z]{4}\d{20}$/,
27+
DZ: /^(DZ\d{24})$/,
2728
EE: /^(EE[0-9]{2})\d{16}$/,
2829
EG: /^(EG[0-9]{2})\d{25}$/,
2930
ES: /^(ES[0-9]{2})\d{20}$/,

test/validators.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -5360,6 +5360,7 @@ describe('Validators', () => {
53605360
'IR200170000000339545727003',
53615361
'MZ97123412341234123412341',
53625362
'MA64011519000001205000534921',
5363+
'DZ580002100001113000000570',
53635364
],
53645365
invalid: [
53655366
'XX22YYY1234567890123',

0 commit comments

Comments
 (0)