You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there should be exact match checking (no trim, clean etc.).
I guess this is related to possible formatting with ibanFormatter. But maybe only specified formatting should be allowed? Or add optional parameter to ValidatorService.validateIban which should valid with ignoring spaces and hyphens or without.
The text was updated successfully, but these errors were encountered:
thanks for opening this issue and your suggestion for this library.
angular-iban is a wrapper of the library iban.js for Angular. If you check the source code of angular-iban, you will see the usage of it.
For me, this formatting is a nice feature. So far we didn't get any objections on it. But of couse, if we really want to change or improve it, we could open an issue at iban.js.
Thanks for clarification. You are right that library iban.js is responsible for that.
That formatting is nice, but validation with random characters not very much. I found corresponding issue in iban.js project: arhs/iban.js#35. There was the same case but discussion stopped some years ago.
I found also that iban.js project is abandoned: arhs/iban.js#88. Probably because of it, this issue isn't fixed. They recommend to switch to library ibantools (I tested this and above example with IBAN works as expected.).
Do you have any info about roadmap for angular-iban regarding abandoned iban.js? Switching to ibantools (but how it corresponds to other Angular libraries that use iban tools like ngx-iban)? Abandoning this project too?
IBAN with spaces is valid:
with hyphens also valid:
with random spaces and hyphens also valid:
I think there should be exact match checking (no trim, clean etc.).
I guess this is related to possible formatting with
ibanFormatter
. But maybe only specified formatting should be allowed? Or add optional parameter toValidatorService.validateIban
which should valid with ignoring spaces and hyphens or without.The text was updated successfully, but these errors were encountered: