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.89k stars 339 forks source link

fix DayOfWeekField::validate() for multiple days with week of month, like MON#1,MON#3 #71

Closed tqmz closed 9 years ago

tqmz commented 9 years ago

See https://github.com/mtdowling/cron-expression/issues/70.

This fix can, if desired at all, most certainly be done in a more elegant way using regex only (if not getting too complicated itself then), but it's at least a workaround for now to prevent the Exception.

ps @mtdowling thanks for your great work both on Guzzle and this library.