This commit is contained in:
cdle
2021-10-06 10:05:08 +08:00
parent 1dc8d8edd7
commit 6d3b5abf76
+1 -1
View File
@@ -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 := ""