Skip to content

Commit

Permalink
fix: subrule can't recursion correctly (#1339)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Jun 22, 2024
1 parent 5028667 commit a56e927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/logic/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func matchSubRules(metadata *C.Metadata, name string, subRules map[string][]C.Ru
for _, rule := range subRules[name] {
if m, a := rule.Match(metadata); m {
if rule.RuleType() == C.SubRules {
matchSubRules(metadata, rule.Adapter(), subRules)
return matchSubRules(metadata, rule.Adapter(), subRules)
} else {
return m, a
}
Expand Down

0 comments on commit a56e927

Please sign in to comment.