Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid Ibans for Norway #2

Open
ernstjosephine opened this issue Oct 25, 2021 · 3 comments
Open

invalid Ibans for Norway #2

ernstjosephine opened this issue Oct 25, 2021 · 3 comments

Comments

@ernstjosephine
Copy link

It seems there is an issue with checksum calculation of norwegian ibans. I've tried some examples (NO9386011117947) and I always get IBAN is invalid but it's a real iban. I'm using your latest version 0.3.2.

@declarus
Copy link
Owner

Hi @ernstjosephine ! I haven't touched this code in years, but I will try and take a look this week. Alternatively, if you can figure out how to fix the bug, feel free to submit a fix!

@declarus
Copy link
Owner

I figured out the issue:

[A-Z]{2}[a-zA-Z0-9]{14,}

is the regular expression I use, and Norway has 13 digits instead of 14.

@ernstjosephine
Copy link
Author

But can you solve it somehow? Otherwise we have to build our own solution and I think we are not the only platform using your gem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants