修复6位cron判断

This commit is contained in:
hanhh 2021-08-25 18:19:22 +08:00
parent a973c93c04
commit 8ae61f1b23

View File

@ -31,7 +31,7 @@ export default class CronService {
private isSixCron(cron: Crontab) { private isSixCron(cron: Crontab) {
const { schedule } = cron; const { schedule } = cron;
if (schedule.split(' ').length === 6) { if (schedule.split(/ +/).length === 6) {
return true; return true;
} }
return false; return false;