From 50c6a72dff1fe2ef256e7b639fdcead6060523f0 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 14 Sep 2020 01:18:03 +0200 Subject: [PATCH] Fixed checking if usage is formatted --- .../net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt index f56d8548..50c745b9 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt @@ -347,7 +347,7 @@ open class Mt940Parser : IMt940Parser { } protected open fun isFormattedUsage(usageParts: List): Boolean { - return usageParts.any { UsageTypeRegex.matches(it) } + return usageParts.any { UsageTypeRegex.find(it) != null } } /**