lc-validator-iban
v1.0.3
Published
IBAN validator for lc-form-validator
Downloads
15
Maintainers
Readme
lc-validator-IBAN
This is a lc-form-validation add-on that brings validation capabilities for:
- International Bank Account Number (IBAN).
This validator follows the next steps:
- Check that the total IBAN length is correct as per the country. If not, the IBAN is invalid.
- Move the four initial characters to the end of the string.
- Replace each letter in the string with two digits, thereby expanding the string, where A = 10, B = 11, ..., Z = 35
- Interpret the string as a decimal integer and compute the remainder of that number on division by 97
- If the remainder is 1, the check digit test is passed and the IBAN might be valid.
Please, refer to lc-form-validation to know more.
CodeSandbox example
License
About Basefactor + Lemoncode
We are an innovating team of Javascript experts, passionate about turning your ideas into robust products.
Basefactor, consultancy by Lemoncode provides consultancy and coaching services.
Lemoncode provides training services.
For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend