diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/BankFinder.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/BankFinder.kt index 72dbab39..a3eb91e2 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/BankFinder.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/BankFinder.kt @@ -25,7 +25,7 @@ open class BankFinder { return getBankList().filter { it.name.toLowerCase().contains(queryLowerCase) || it.bankCode.startsWith(query) - || it.city.contains(queryLowerCase) + || it.city.toLowerCase().contains(queryLowerCase) } } diff --git a/fints4javaLib/src/test/kotlin/net/dankito/fints/banks/BankFinderTest.kt b/fints4javaLib/src/test/kotlin/net/dankito/fints/banks/BankFinderTest.kt index 22e8b3df..56b49879 100644 --- a/fints4javaLib/src/test/kotlin/net/dankito/fints/banks/BankFinderTest.kt +++ b/fints4javaLib/src/test/kotlin/net/dankito/fints/banks/BankFinderTest.kt @@ -26,7 +26,7 @@ class BankFinderTest { val result = underTest.findBankByNameBankCodeOrCity("starnberg") // then - assertThat(result).hasSize(66) + assertThat(result).hasSize(71) } @Test