diff --git a/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/InputValidator.kt b/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/InputValidator.kt index df682dde..4d5ae82e 100644 --- a/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/InputValidator.kt +++ b/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/InputValidator.kt @@ -60,8 +60,7 @@ open class InputValidator { open fun isValidIban(stringToTest: String): Boolean { - return IbanPattern.matcher(stringToTest).matches() || - IbanWithSpacesPattern.matcher(stringToTest).matches() + return IbanPattern.matcher(stringToTest.replace(" ", "")).matches() } open fun getInvalidIbanCharacters(string: String): String {