Comments (1)
Thank you for pointing this out. I've looked at both validators and both were indeed faulty, and unfortunately still passed the old test IBANs:
The validator for Finnish IBANs had an arithmetic error, the Estonian one had a faulty weight.
While at it, I cleaned the code up quite a bit and added a bunch more test IBANs, which luckily showed no other faulty validator before and after cleanup. I've also added the Estonian IBAN you provided to the test cases.
However, the Finnish IBAN you provided seems to be invalid. I've added another Finnish IBAN which confirmed the bug, but the IBAN you provided does not have a valid account number and therefore still fails. While, interestingly, the validator on iban.com (which seems to be the official IBAN site) doesn't seem to recognize the error (and some other also don't), I've found that this site https://www.ibancalculator.com/iban_validieren.html confirms the error in the account number. This maybe, because the check digit is part of the national id (kennitala) and not a proper feature of the IBAN itself and is therefore not implemented by iban.com, but that's just speculation tbh.
It could also mean that newer Finnish Account numbers don't use that same check digit anymore, but Wikipedia still lists the validation and a quick search didn't indicate as much (also it seems weird for a country just to remove a check digit). Therefore, I've kept the validator for now.
Maybe you have different information? Did you get the IBAN from a "random" site or a (semi-) official source?
from standards.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from standards.