Fixed that IBANs with inconsistent white spaces got marked as error
This commit is contained in:
parent
cd4672f964
commit
bcfe431110
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue