arhs / iban.js

IBAN & BBAN validation, formatting and conversion in Javascript
https://arhs.github.io/iban.js/
MIT License
534 stars 128 forks source link

IBAN.isValid ignores non-alphanumeric characters #42

Closed you-fail-me closed 6 years ago

you-fail-me commented 6 years ago

E.g.

const notValidIban = 'DE893704 0044 0532 0130 __00^#&#*#*(#';

IBAN.isValid(notValidIban); // true

Looks like it considers only aphanumeric characters, here I have a valid iban, but polluted with special characters, and it's still treated as valid

LaurentVB commented 6 years ago

Hello, Thanks for the report. Indeed, this is a duplicate of #35