Simplify/ibantools

valid Hungarian BBAN fails

Closed this issue · 1 comments

Describe the bug
Valid Hungarian IBAN / BBAN fails to validate if it not ends with '00000000'

To Reproduce
With this example BBAN of 1177338427907601, validation will fail.

Expected behavior
Result should be a valid BBAN.

Additional context

const controlDigitAccount = parseInt(bban.charAt(23), 10);

I think 23 should be replaced with 14.

my bad