diff --git a/src/ibantools.ts b/src/ibantools.ts index f565bdd..b97c5ce 100755 --- a/src/ibantools.ts +++ b/src/ibantools.ts @@ -1038,7 +1038,7 @@ export const countrySpecs: CountryMapInternal = { BW: {}, BY: { chars: 28, - bban_regexp: '^[A-Z]{4}[0-9]{4}[A-Z0-9]{16}$', + bban_regexp: '^[A-Z0-9]{4}[0-9]{4}[A-Z0-9]{16}$', IBANRegistry: true, bank_identifier: '0-3', }, diff --git a/test/ibantools_test.js b/test/ibantools_test.js index 037a995..de0ab76 100644 --- a/test/ibantools_test.js +++ b/test/ibantools_test.js @@ -33,6 +33,9 @@ describe('IBANTools', function() { it('with valid BY IBAN should return true', function() { return expect(iban.isValidIBAN('BY13NBRB3600900000002Z00AB00')).to.be.true; }); + it('with valid BY IBAN whose bank code contains a digit should return true', function() { + return expect(iban.isValidIBAN('BY26AKB10100000002966000000A')).to.be.true; + }); it('with valid CR IBAN should return true', function() { return expect(iban.isValidIBAN('CR25010200009074883572')).to.be.true; });