lib/danger/request_sources/github/github.rb in danger-5.16.1 vs lib/danger/request_sources/github/github.rb in danger-6.0.0

- old
+ new

@@ -373,9 +373,15 @@ file_header_regexp = %r{^diff --git a/.*} pattern = "+++ b/" + message.file + "\n" file_start = diff_lines.index(pattern) + # Files containing spaces sometimes have a trailing tab + if file_start.nil? + pattern = "+++ b/" + message.file + "\t\n" + file_start = diff_lines.index(pattern) + end + return nil if file_start.nil? position = -1 file_line = nil