This commit is contained in:
cdle
2021-09-18 18:53:25 +08:00
parent d650be9017
commit 5c9232e729
+1 -1
View File
@@ -292,7 +292,7 @@ func GetCronID(keyword string) (*Cron, error) {
cs = append(cs, cron)
break
}
if cron.Name == keyword {
if strings.Contains(cron.Name, keyword) {
cs = append(cs, cron)
}
if regexp.MustCompile(keyword+"$").FindString(cron.Command) != "" {