lib/todoist/diff_todo_finder.rb in danger-todoist-1.0.1 vs lib/todoist/diff_todo_finder.rb in danger-todoist-1.1.0
- old
+ new
@@ -3,9 +3,10 @@
class DiffTodoFinder
TODO_REGEXP = /
^\+ # we only look at additions, marked by + in diffs
\s* # followed by optional space
[^a-z0-9\+\s]+ # anything looking like a comment indicator
+ (\n\+)? # allow multiline comment markers
\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