-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
feat: IBAN validation #290
Conversation
|
Name | Link |
---|---|
🔨 Latest commit | cd196adcc74c225514151d823f3ade28cd58c7e0 |
Thanks for working on this! I will review it in the next few days. Another validator that's missing is |
768439a
to
3b48f23
Compare
@fabian-hiller will check isLuhnAlgo and add validator for credit cards. |
@fabian-hiller could you review it and merge this PR? |
Next week is the last week of this semester and I have one exam left. That's why I'm not that fast with reviewing right now. I will try to do it over the weekend or next week. |
I am not an IBAN expert, but I suspect that your code does not detect a wrong IBAN in every case. For example, if you enter a letter instead of a number that happens to be converted to a valid number by I found validator.js on GitHub. Maybe we can get some inspiration from their |
@fabian-hiller could you give a case? This functon first check the length and then rearanges, so it moves first 4 chars at the end and after replaces chars from A-Z with a 2 digit number. If there would be 4 chars, it would replace those 4 with 2 digit number. On string of numbers then it perform mod97. I tested it against values from [validator.js] and i couldn't find any issue. (https://github.com/validatorjs/validator.js) |
Thank you for your feedback. I will check the code again. |
b997a0f
to
6d0cde4
Compare
Unfortunately, due to our rewrite a few months ago, this PR is no longer up to date with our source code. I still plan to add this action, but other things have a higher priority for me at the moment. If you or anyone else in the community is interested in creating a new PR, that would be great. |
41ae798
to
4a7ee57
Compare
7a97dd0
to
b5f7f4d
Compare
I will close this PR. However, I will keep it in mind when adding this action in the future. |
No description provided.