kelektiv / node-cron

Cron for NodeJS.
MIT License
8.3k stars 617 forks source link

Regex prevents valid syntax #873

Closed fabulousgk closed 2 months ago

fabulousgk commented 2 months ago

Description

The regex ^(?:\d+|*|*\/\d+)$ does not allow for syntax like 3/8 which is valid

Expected Behavior

Allow syntax like 3/8

Actual Behavior

Error

Possible Fix

No response

Steps to Reproduce

cron.validate('50 3/8 *')

Context

Need schedule to run every 8 hours starting at 3:50

Your Environment