Skip to content

Commit a165ebe

Browse files
ds1371daniDanial
andauthored
fix(isIBAN): improve IR locale (#2634)
Co-authored-by: Danial <[email protected]>
1 parent 9113304 commit a165ebe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib/isIBAN.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const ibanRegexThroughCountryCode = {
4343
IE: /^(IE[0-9]{2})[A-Z]{4}\d{14}$/,
4444
IL: /^(IL[0-9]{2})\d{19}$/,
4545
IQ: /^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,
46-
IR: /^(IR[0-9]{2})0\d{2}0\d{18}$/,
46+
IR: /^(IR[0-9]{2})\d{22}$/,
4747
IS: /^(IS[0-9]{2})\d{22}$/,
4848
IT: /^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,
4949
JO: /^(JO[0-9]{2})[A-Z]{4}\d{22}$/,

test/validators.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6142,6 +6142,7 @@ describe('Validators', () => {
61426142
'IE29AIBK93115212345678',
61436143
'PS92PALS000000000400123456702',
61446144
'PS92PALS00000000040012345670O',
6145+
'IR576406610070915600106898',
61456146
],
61466147
invalid: [
61476148
'XX22YYY1234567890123',

0 commit comments

Comments
 (0)