Skip to content

Commit

Permalink
Full match to partial match for title filter
Browse files Browse the repository at this point in the history
Fix #1356
  • Loading branch information
yujincheng08 committed Jan 8, 2024
1 parent 62ff4b9 commit f6cf56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/me/iacn/biliroaming/hook/ProtoBufHook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class ProtoBufHook(classLoader: ClassLoader) : BaseHook(classLoader) {
if (videoCard.getLongField("mid_") in searchFilterUid) return@filter false
if (videoCard.getObjectFieldAs<String>("author_") in searchFilterUpNames) return@filter false
if (searchFilterContentRegexMode) {
if (searchFilterContentRegexes.any { it.matches(videoCard.getObjectFieldAs<String>("title_")) })
if (searchFilterContentRegexes.any { it.containsMatchIn(videoCard.getObjectFieldAs<String>("title_")) })
return@filter false
} else {
if (searchFilterContents.any { videoCard.getObjectFieldAs<String>("title_").contains(it) }) return@filter false
Expand Down

0 comments on commit f6cf56e

Please sign in to comment.