aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-03-07 09:37:44 -0500
committerGitHub <noreply@github.com>2017-03-07 09:37:44 -0500
commit2ecfba6ea091438f7c6dbd16f6dd4a55379cf61d (patch)
tree1157e137cb3530f3080b95745c3d4a269a4d0d80
parentb735a0cc90c6df666f59b7ee302dae27a6a7afeb (diff)
parent7b09ad91438e19ba32795fcda908f02fe1b7646f (diff)
Merge pull request #40 from gammons/spacing-bug
Fix spacing bug when adding todos
-rw-r--r--todolist/parser.go2
1 files changed, 1 insertions, 1 deletions
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