bunkat / later

A javascript library for defining recurring schedules and calculating future (or past) occurrences for them. Includes support for using English phrases and Cron schedules. Works in Node and in the browser.
http://bunkat.github.io/later/
MIT License
2.42k stars 245 forks source link

Getting an error for: * * * * * ? #236

Open maalsol opened 5 years ago

maalsol commented 5 years ago

Calling the following the code using the expression * ? var e = later.parse.cron(b, !0); return later.schedule(e).isValid()

Causes the following error:

angular.min.js:formatted:2997 TypeError: Cannot read property 'constraint' of undefined
    at Object.e.compile (later.min.js:formatted:561)
    at Object.e.schedule (later.min.js:formatted:712)

Replacing any of the star symbols for a valid value returns correctly, however I believe that the expression I'm using is valid.

Any Ideas?