From 6d3b5abf763393d914252d03ed3a1b7408b7d997 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Wed, 6 Oct 2021 10:05:08 +0800 Subject: [PATCH] update --- core/otto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/otto.go b/core/otto.go index de39574..5f7ec9f 100644 --- a/core/otto.go +++ b/core/otto.go @@ -122,7 +122,7 @@ func init() { data = string(v) } rules := []string{} - for _, res := range regexp.MustCompile(`\[rule:([^\[\]]+)\]`).FindAllStringSubmatch(data, -1) { + for _, res := range regexp.MustCompile(`\[rule:(.+)\]`).FindAllStringSubmatch(data, -1) { rules = append(rules, strings.Trim(res[1], " ")) } cron := ""