Skip to content

Commit 1696576

Browse files
committed
add a case for preceding comma
1 parent a1b0822 commit 1696576

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)