diff --git a/fints4k/src/main/kotlin/net/dankito/banking/fints/response/ResponseParser.kt b/fints4k/src/main/kotlin/net/dankito/banking/fints/response/ResponseParser.kt index 225dd289..2c9ac581 100644 --- a/fints4k/src/main/kotlin/net/dankito/banking/fints/response/ResponseParser.kt +++ b/fints4k/src/main/kotlin/net/dankito/banking/fints/response/ResponseParser.kt @@ -742,7 +742,10 @@ open class ResponseParser @JvmOverloads constructor( elements.add(dataString.substring(startIndex)) } - return elements.map { it.replace(Separators.MaskingCharacter + separator, separator) } + return elements.map { + if (it.contains(Separators.MaskingCharacter + separator)) it.replace(Separators.MaskingCharacter + separator, separator.toString()) + else it + } }