gorhill / cronexpr

Cron expression parser in Go language (golang)
687 stars 169 forks source link

fixed parsering bug for like "*/5" #7

Closed safx closed 10 years ago

gorhill commented 10 years ago

Ok got it, the layoutWildcard regex was wrong:

^\*|\?$ = wrong ^\*$|^\?$ = right

That's the proper fix. I will take care of it, but I will still pull your request so that I can get your tests.