mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 01:26:59 +08:00
opt dm filter
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -31,9 +31,9 @@ class RuleFilter {
|
||||
|
||||
RuleFilter.empty();
|
||||
|
||||
bool retain(DanmakuElem elem) {
|
||||
return !(dmUid.contains(elem.midHash) ||
|
||||
bool remove(DanmakuElem elem) {
|
||||
return dmUid.contains(elem.midHash) ||
|
||||
dmFilterString.any((i) => elem.content.contains(i)) ||
|
||||
dmRegExp.any((i) => i.hasMatch(elem.content)));
|
||||
dmRegExp.any((i) => i.hasMatch(elem.content));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user