From 2a9aaca4d802b9023516fdcfdffa9a343253e4e1 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 5 Oct 2020 01:29:15 +0200 Subject: [PATCH] Implemented that also German diacritics get detected as invalid SEPA characters (on iOS they get detected anyway, but Android seems to use UTF-8) --- .../kotlin/net/dankito/banking/util/InputValidator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/InputValidator.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/InputValidator.kt index 591dca55..0ae3f97f 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/InputValidator.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/util/InputValidator.kt @@ -58,7 +58,7 @@ open class InputValidator { val InvalidBicCharactersPattern = Regex("[^A-Z0-9]") - val InvalidSepaCharactersPattern = Regex("[^${SepaMessageCreator.AllowedSepaCharactersExceptReservedXmlCharactersPattern}]+") + val InvalidSepaCharactersPattern = Regex("[[^${SepaMessageCreator.AllowedSepaCharactersExceptReservedXmlCharactersPattern}]|[ÄÖÜäöüß]]+") // diacritics are only needed on Android, seems to use UTF-8 as opposed to iOS // TODO: also add other diacritics }