Sha256: ef8d8f2a7c39d9845b15195b64671c991f66ee91a4cfcf00cd828ef0352bbabd
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
diff --git a/lib/todoist/diff_todo_finder.rb b/lib/todoist/diff_todo_finder.rb index b58809b..1ecc4f0 100644 --- a/lib/todoist/diff_todo_finder.rb +++ b/lib/todoist/diff_todo_finder.rb @@ -54,9 +53,11 @@ def all_todos def line_number(match) _, todo_indicator = match GitDiffParser::Patch.new(diff.patch).changed_lines.each do |line| return line.number if line.content =~ /#{todo_indicator}/ end + # introducing a change with a newline right above a pre-existing TODO + # TODO: thats not gonna fly -1 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-todoist-2.0.1 | spec/fixtures/preexisting_todo.diff |