Skip to content

Commit

Permalink
feat(isIBAN): add Morocco (MA) IBAN format (#2025)
Browse files Browse the repository at this point in the history
* feat(isIBAN): add Morocco (MA) IBAN format

* test(isIBAN): add moroccan IBAN example to test

---------

Co-authored-by: lroudge <laura@hikoala.co>
  • Loading branch information
lroudge and lroudge authored Jun 26, 2023
1 parent 4c25f26 commit 2440c39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/isIBAN.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const ibanRegexThroughCountryCode = {
LT: /^(LT[0-9]{2})\d{16}$/,
LU: /^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,
LV: /^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,
MA: /^(MA[0-9]{26})$/,
MC: /^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,
MD: /^(MD[0-9]{2})[A-Z0-9]{20}$/,
ME: /^(ME[0-9]{2})\d{18}$/,
Expand Down
1 change: 1 addition & 0 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5246,6 +5246,7 @@ describe('Validators', () => {
'LB92000700000000123123456123',
'IR200170000000339545727003',
'MZ97123412341234123412341',
'MA64011519000001205000534921',
],
invalid: [
'XX22YYY1234567890123',
Expand Down

0 comments on commit 2440c39

Please sign in to comment.