restrict week number to valid values

This commit is contained in:
gorhill 2013-09-07 16:04:25 -04:00
parent 7f9a918f89
commit 8a4a15a5a2
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ var (
layoutWorkdom = `^(%value%)w$` layoutWorkdom = `^(%value%)w$`
layoutLastWorkdom = `^lw$` layoutLastWorkdom = `^lw$`
layoutDowOfLastWeek = `^(%value%)l$` layoutDowOfLastWeek = `^(%value%)l$`
layoutDowOfSpecificWeek = `^(%value%)#(\d+)$` layoutDowOfSpecificWeek = `^(%value%)#([1-5])$`
fieldFinder = regexp.MustCompile(`\S+`) fieldFinder = regexp.MustCompile(`\S+`)
entryFinder = regexp.MustCompile(`[^,]+`) entryFinder = regexp.MustCompile(`[^,]+`)
layoutRegexp = make(map[string]*regexp.Regexp) layoutRegexp = make(map[string]*regexp.Regexp)