From 8ae61f1b23de122753237632b5abe933467cd50d Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Wed, 25 Aug 2021 18:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D6=E4=BD=8Dcron=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/cron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/cron.ts b/back/services/cron.ts index 503ba7bd..d421ae69 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -31,7 +31,7 @@ export default class CronService { private isSixCron(cron: Crontab) { const { schedule } = cron; - if (schedule.split(' ').length === 6) { + if (schedule.split(/ +/).length === 6) { return true; } return false;