feat: cancel RULE-SET nested SUB-RULE restrictions
This commit is contained in:
parent
0c2d223c1b
commit
0655107a9a
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
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) {
|
return &classicalStrategy{rules: []C.Rule{}, parse: func(tp, payload, target string, params []string) (parsed C.Rule, parseErr error) {
|
||||||
switch tp {
|
switch tp {
|
||||||
case "MATCH", "SUB-RULE":
|
case "MATCH":
|
||||||
return nil, fmt.Errorf("unsupported rule type on rule-set")
|
return nil, fmt.Errorf("unsupported rule type on rule-set")
|
||||||
default:
|
default:
|
||||||
return parse(tp, payload, target, params, nil)
|
return parse(tp, payload, target, params, nil)
|
||||||
|
|
Loading…
Reference in a new issue