Commit Graph

13 Commits

Author SHA1 Message Date
Thomas Orozco
b648cc9a90 Expose ParseStrict to error on too many fields
Parse currently ignores any tokens after the 7th, which means invalid
cron expressions might be allowed as long as invalid tokens are found
after the 7th character.

In some use cases (e.g. validating cron expressions provided by a user),
this might not be desirable. To allow for this use case, this adds a
ParseStrict function that returns an error if too many fields are
provided (it retains backwards compatibility by not touching Parse).
2018-08-01 16:10:17 +02:00
gorhill
0ef34dac9b now also aplv2 2013-11-20 06:10:35 -05:00
gorhill
17ea23bf08 further tidying 2013-09-08 10:37:12 -04:00
gorhill
7f9a918f89 golint/deadcode/etc. 2013-09-07 15:45:21 -04:00
gorhill
e869d999cf issues #1, #3, #5, #6 2013-09-07 14:02:17 -04:00
gorhill
5442b2bfef changes as per #5 2013-09-02 09:25:49 -04:00
gorhill
b353b8f1d8 fixed specific weekdays of week, wasn't working 2013-09-02 08:02:14 -04:00
gorhill
718fc4c0ab changes as suggested at https://groups.google.com/d/msg/golang-nuts/la6mB5xG1L4/5V0L2GqF_1oJ 2013-09-01 09:24:01 -04:00
gorhill
68fd2b282b fixed time zone bug 2013-08-31 13:08:04 -04:00
gorhill
5c3ec34a8d fleshing out doc 2013-08-31 09:07:23 -04:00
gorhill
2594aadb14 fleshing out doc 2013-08-31 09:05:45 -04:00
gorhill
83135b3c5c renaming cronexpression to cronexpr 2013-08-31 09:00:12 -04:00
Raymond Hill
6190b9d9db Rename cronexpression.go to cronexpr.go 2013-08-31 08:50:51 -04:00