This commit is contained in:
cdle
2021-10-13 20:46:03 +08:00
parent 07bdf0b781
commit 1fcf9820cb
+2
View File
@@ -279,9 +279,11 @@ func GetCronID(s core.Sender, keyword string) (*Cron, error) {
}
if strings.Contains(cron.Name, keyword) {
cs = append(cs, cron)
continue
}
if strings.Contains(cron.Command, keyword) {
cs = append(cs, cron)
continue
}
// if regexp.MustCompile(keyword+"$").FindString(cron.Command) != "" {
// cs = append(cs, cron)