poliander/cron

Support for integers starting with zero

Closed this issue · 2 comments

Hi there,

I found a bug with cron: 0-30/2 02,06-19 5-30/5 1-11 1-2,4-5.

In fact this is a valid cron, but the ìsValidî method sends false.

I think I have found the origin of this error:
image

Here we are comparing 2 and 02.

But 02 = 2 is an integer.

Will look into it, thank you for reporting!

Fixed in v2.4.9 and v3.0.7