We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const cron = '12 0 6 * * *'; console.log(parseString(cron).expressions[0]. fields);
控制台结果:
dayOfMonth: [6] dayOfWeek: [0, 1, 2, 3, 4, 5, 6, 7] hour: [0] minute: [12] month: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] second: [0]
正常结果: second: [12]
second: [12]
parseString方法这里并没有判断spring格式的cron, 而是直接补 0
try { result = CronParser._parseEntry('0 ' + entry); response.expressions.push(result.interval); } catch (err) { response.errors[entry] = err; }
希望作者处理一下, 感谢!!!
The text was updated successfully, but these errors were encountered:
harrisiirak
Successfully merging a pull request may close this issue.
控制台结果:
正常结果:
second: [12]
parseString方法这里并没有判断spring格式的cron, 而是直接补 0
希望作者处理一下, 感谢!!!
The text was updated successfully, but these errors were encountered: