mtdowling / cron-expression

CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
http://mtdowling.com/blog/2012/06/03/cron-expressions-in-php/
MIT License
4.9k stars 335 forks source link

lowercase weekday not valid #47

Closed dfbravo closed 10 years ago

dfbravo commented 10 years ago

The validate function in the DayOfWeekField.php matches only upper case days of the week and not lower case. This causes the following bug:

0 9 * * mon Not valid 0 9 * * mon, Valid

The second line is valid because the comma is correctly matched by the validate function.

mtdowling commented 10 years ago

fixed in a recent PR