diff --git a/cronexpr_impl.go b/cronexpr_impl.go index 51f2cc1..981aa0e 100644 --- a/cronexpr_impl.go +++ b/cronexpr_impl.go @@ -188,7 +188,7 @@ var ( layoutWorkdom = `^(%value%)w$` layoutLastWorkdom = `^lw$` layoutDowOfLastWeek = `^(%value%)l$` - layoutDowOfSpecificWeek = `^(%value%)#(\d+)$` + layoutDowOfSpecificWeek = `^(%value%)#([1-5])$` fieldFinder = regexp.MustCompile(`\S+`) entryFinder = regexp.MustCompile(`[^,]+`) layoutRegexp = make(map[string]*regexp.Regexp)