Skip to content

Commit

Permalink
fix(isIBAN): adjusting Palestine IBAN regex to include alphanumeric c…
Browse files Browse the repository at this point in the history
…haracters instead of only numbers
  • Loading branch information
Tarasz57 committed Jan 16, 2025
1 parent 8f47a32 commit 7e41fba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isIBAN.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const ibanRegexThroughCountryCode = {
NO: /^(NO[0-9]{2})\d{11}$/,
PK: /^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,
PL: /^(PL[0-9]{2})\d{24}$/,
PS: /^(PS[0-9]{2})[A-Z]{4}\d{21}$/,
PS: /^(PS[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,
PT: /^(PT[0-9]{2})\d{21}$/,
QA: /^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,
RO: /^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,
Expand Down
1 change: 1 addition & 0 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5859,6 +5859,7 @@ describe('Validators', () => {
'DZ580002100001113000000570',
'IE29AIBK93115212345678',
'PS92PALS000000000400123456702',
'PS92PALS00000000040012345670O',
],
invalid: [
'XX22YYY1234567890123',
Expand Down

0 comments on commit 7e41fba

Please sign in to comment.