Skip to content

Commit 8150d04

Browse files
Merge pull request #20 from augmentable-dev/better-todo-cleaning
add a case for preceding comma
2 parents a76ab1f + 1696576 commit 8150d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/todos/todos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewToDo(comment comments.Comment) *ToDo {
2727
if !strings.Contains(s, "TODO") {
2828
return nil
2929
}
30-
re := regexp.MustCompile(`TODO:?`)
30+
re := regexp.MustCompile(`TODO(:|,)?`)
3131
s = re.ReplaceAllLiteralString(comment.String(), "")
3232
s = strings.Trim(s, " ")
3333

0 commit comments

Comments
 (0)