restrict week number to valid values
This commit is contained in:
parent
7f9a918f89
commit
8a4a15a5a2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue