From 7b09ad91438e19ba32795fcda908f02fe1b7646f Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Tue, 7 Mar 2017 08:28:23 -0500 Subject: Fix spacing bug when adding todos All new todos would have a space in them. This fixes that. --- todolist/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todolist/parser.go b/todolist/parser.go index 24a4016..72f6d67 100644 --- a/todolist/parser.go +++ b/todolist/parser.go @@ -12,7 +12,7 @@ import ( type Parser struct{} func (p *Parser) ParseNewTodo(input string) *Todo { - r, _ := regexp.Compile(`^(add|a)(\\ |)`) + r, _ := regexp.Compile(`^(add|a)(\\ |) `) input = r.ReplaceAllString(input, "") if input == "" { return nil -- cgit v1.3