diff options
Diffstat (limited to 'todolist/parser.go')
| -rw-r--r-- | todolist/parser.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/todolist/parser.go b/todolist/parser.go index 6919bd7..767785b 100644 --- a/todolist/parser.go +++ b/todolist/parser.go @@ -61,7 +61,7 @@ func (p *Parser) Due(input string, day time.Time) string { r, _ := regexp.Compile(`due .*$`) res := r.FindString(input) - res = res[4:len(res)] + res = res[4:] switch res { case "none": return "" @@ -167,7 +167,7 @@ func (p *Parser) matchWords(input string, r *regexp.Regexp) []string { ret := []string{} for _, val := range results { - ret = append(ret, val[1:len(val)]) + ret = append(ret, val[1:]) } return ret } |
