arhs / iban.js

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

BIC validation #40

Closed cuhsat closed 6 years ago

cuhsat commented 7 years ago

Could you possibly add the following regular expression to also validate a BIC (because mostly both fields are requested) or is that feature out of scope?

^([A-Z]{6}[A-Z2-9][A-NP-Z1-2])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$
LaurentVB commented 6 years ago

Hey @cuhsat, thanks for the suggestion. This is indeed out of scope of this library.

Laurent