lib/danger/request_sources/github/github.rb in danger-5.8.1 vs lib/danger/request_sources/github/github.rb in danger-5.8.2

- old
+ new

@@ -367,10 +367,10 @@ next true end end def find_position_in_diff(diff_lines, message, kind) - range_header_regexp = /@@ -([0-9]+),([0-9]+) \+(?<start>[0-9]+)(,(?<end>[0-9]+))? @@.*/ + range_header_regexp = /@@ -([0-9]+)(,([0-9]+))? \+(?<start>[0-9]+)(,(?<end>[0-9]+))? @@.*/ file_header_regexp = %r{^diff --git a/.*} pattern = "+++ b/" + message.file + "\n" file_start = diff_lines.index(pattern)