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