diff --git a/app/src/main/kotlin/net/primal/android/core/utils/TextMatcher.kt b/app/src/main/kotlin/net/primal/android/core/utils/TextMatcher.kt index 1fdfcedde..ca7d53c6f 100644 --- a/app/src/main/kotlin/net/primal/android/core/utils/TextMatcher.kt +++ b/app/src/main/kotlin/net/primal/android/core/utils/TextMatcher.kt @@ -36,7 +36,7 @@ class TextMatcher( value = text, startIndex = currentIndex, endIndex = currentIndex + text.length, - ) + ), ) if (!repeatingOccurrences) break diff --git a/app/src/test/kotlin/net/primal/android/core/utils/TextMatcherTest.kt b/app/src/test/kotlin/net/primal/android/core/utils/TextMatcherTest.kt index 99fcabd99..856f91ee7 100644 --- a/app/src/test/kotlin/net/primal/android/core/utils/TextMatcherTest.kt +++ b/app/src/test/kotlin/net/primal/android/core/utils/TextMatcherTest.kt @@ -4,7 +4,6 @@ import io.kotest.matchers.collections.shouldContain import io.kotest.matchers.collections.shouldContainAll import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder import io.kotest.matchers.collections.shouldNotContain -import io.kotest.matchers.shouldBe import org.junit.Test class TextMatcherTest {