Fixed that IBANs with inconsistent white spaces got marked as error

This commit is contained in:
dankito 2020-05-16 22:37:32 +02:00
parent cd4672f964
commit bcfe431110
1 changed files with 1 additions and 2 deletions

View File

@ -60,8 +60,7 @@ open class InputValidator {
open fun isValidIban(stringToTest: String): Boolean { open fun isValidIban(stringToTest: String): Boolean {
return IbanPattern.matcher(stringToTest).matches() || return IbanPattern.matcher(stringToTest.replace(" ", "")).matches()
IbanWithSpacesPattern.matcher(stringToTest).matches()
} }
open fun getInvalidIbanCharacters(string: String): String { open fun getInvalidIbanCharacters(string: String): String {