diff options
| author | Grant Ammons <gammons@gmail.com> | 2016-05-04 14:39:37 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2016-05-04 14:39:37 -0400 |
| commit | e1b69d2e4a3fc6f5ef0eb4d3716df6ae8a9f92a9 (patch) | |
| tree | 0853e40c9ea2d957a4735d18736be3adb6c71656 /todolist/parser.go | |
| parent | d3b6d589c088ad173c6298c8e6a344d7bc0573b2 (diff) | |
Allow editing due dates and setting it to none
Diffstat (limited to 'todolist/parser.go')
| -rw-r--r-- | todolist/parser.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/todolist/parser.go b/todolist/parser.go index a857f16..59a290a 100644 --- a/todolist/parser.go +++ b/todolist/parser.go @@ -55,6 +55,8 @@ func (p *Parser) Due(input string, day time.Time) string { res := r.FindString(input) res = res[4:len(res)] switch { + case res == "none": + return "" case res == "today": return now.BeginningOfDay().Format("2006-01-02") case res == "tomorrow" || res == "tom": |
