diff options
| author | Grant Ammons <gammons@gmail.com> | 2017-03-07 09:37:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-07 09:37:44 -0500 |
| commit | 2ecfba6ea091438f7c6dbd16f6dd4a55379cf61d (patch) | |
| tree | 1157e137cb3530f3080b95745c3d4a269a4d0d80 /todolist | |
| parent | b735a0cc90c6df666f59b7ee302dae27a6a7afeb (diff) | |
| parent | 7b09ad91438e19ba32795fcda908f02fe1b7646f (diff) | |
Merge pull request #40 from gammons/spacing-bug
Fix spacing bug when adding todos
Diffstat (limited to 'todolist')
| -rw-r--r-- | todolist/parser.go | 2 |
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 |
