diff --git a/src/main/kotlin/org/quiltmc/community/modes/quilt/extensions/filtering/FilterExtension.kt b/src/main/kotlin/org/quiltmc/community/modes/quilt/extensions/filtering/FilterExtension.kt index 4a59b0f3..b8218daa 100644 --- a/src/main/kotlin/org/quiltmc/community/modes/quilt/extensions/filtering/FilterExtension.kt +++ b/src/main/kotlin/org/quiltmc/community/modes/quilt/extensions/filtering/FilterExtension.kt @@ -1043,7 +1043,7 @@ class FilterExtension : Extension() { } suspend fun FilterEntry.matches(content: String): Boolean = when (matchType) { - MatchType.CONTAINS -> homoglyphs.search(match.lowercase()).size > 0 + MatchType.CONTAINS -> homoglyphs.search(content, match.lowercase()).size > 0 MatchType.EXACT -> content.equals(match, ignoreCase = true) MatchType.REGEX -> match.toRegex(RegexOption.IGNORE_CASE).matches(content) MatchType.REGEX_CONTAINS -> content.contains(match.toRegex(RegexOption.IGNORE_CASE))