From f6cf56e2aa621b688e4dda870466b5b37cbc96fe Mon Sep 17 00:00:00 2001 From: LoveSy Date: Mon, 8 Jan 2024 23:58:04 +0800 Subject: [PATCH] Full match to partial match for title filter Fix #1356 --- app/src/main/java/me/iacn/biliroaming/hook/ProtoBufHook.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/me/iacn/biliroaming/hook/ProtoBufHook.kt b/app/src/main/java/me/iacn/biliroaming/hook/ProtoBufHook.kt index 61274022f3..464f569149 100644 --- a/app/src/main/java/me/iacn/biliroaming/hook/ProtoBufHook.kt +++ b/app/src/main/java/me/iacn/biliroaming/hook/ProtoBufHook.kt @@ -306,7 +306,7 @@ class ProtoBufHook(classLoader: ClassLoader) : BaseHook(classLoader) { if (videoCard.getLongField("mid_") in searchFilterUid) return@filter false if (videoCard.getObjectFieldAs("author_") in searchFilterUpNames) return@filter false if (searchFilterContentRegexMode) { - if (searchFilterContentRegexes.any { it.matches(videoCard.getObjectFieldAs("title_")) }) + if (searchFilterContentRegexes.any { it.containsMatchIn(videoCard.getObjectFieldAs("title_")) }) return@filter false } else { if (searchFilterContents.any { videoCard.getObjectFieldAs("title_").contains(it) }) return@filter false