fix: adjust sub_rule to logic package, and fix not rule failed

This commit is contained in:
Skyxim
2022-09-11 16:19:42 +08:00
parent ef2f8317c7
commit 4597ed49cf
4 changed files with 13 additions and 16 deletions

View File

@@ -43,7 +43,7 @@ func (not *NOT) Match(metadata *C.Metadata) (bool, string) {
return true, not.adapter
}
if m, _ := not.rule.Match(metadata); m {
if m, _ := not.rule.Match(metadata); !m {
return true, not.adapter
}