Skip to content

Commit

Permalink
feat: cancel RULE-SET nested SUB-RULE restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyxim committed Oct 31, 2023
1 parent 8ff476a commit 96220aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/provider/classical_strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func ruleParse(ruleRaw string) (string, string, []string) {
func NewClassicalStrategy(parse func(tp, payload, target string, params []string, subRules map[string][]C.Rule) (parsed C.Rule, parseErr error)) *classicalStrategy {
return &classicalStrategy{rules: []C.Rule{}, parse: func(tp, payload, target string, params []string) (parsed C.Rule, parseErr error) {
switch tp {
case "MATCH", "SUB-RULE":
case "MATCH":
return nil, fmt.Errorf("unsupported rule type on rule-set")
default:
return parse(tp, payload, target, params, nil)
Expand Down

0 comments on commit 96220aa

Please sign in to comment.