lib/todoist/diff_todo_finder.rb in danger-todoist-1.0.0 vs lib/todoist/diff_todo_finder.rb in danger-todoist-1.0.1
- old
+ new
@@ -2,10 +2,10 @@
# Identify todos in a set of diffs
class DiffTodoFinder
TODO_REGEXP = /
^\+ # we only look at additions, marked by + in diffs
\s* # followed by optional space
- [^a-z0-9\+]* # anything looking like a comment indicator, not a +
+ [^a-z0-9\+\s]+ # anything looking like a comment indicator
\s+ # followed by at least one space
(TODO|FIXME) # our todo indicator
[\s:]{1} # followed by a space or colon
(?<text>.*)$ # matching any text until the end of the line
/ix