aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'todolist/parser.go')
-rw-r--r--todolist/parser.go2
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":