We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10a9cd9 + e072794 commit 684fe22Copy full SHA for 684fe22
src/Parser.php
@@ -110,7 +110,7 @@ private function parseFileDiff(Diff $diff, array $lines)
110
$last = null;
111
112
while (count($lines) &&
113
- (preg_match('(^(?P<type>[+ -])(?P<line>.*))', $last = array_shift($lines), $match) ||
+ (preg_match('(^(?P<type>[+ -])?(?P<line>.*))', $last = array_shift($lines), $match) ||
114
(strpos($last, '\\ No newline at end of file' ) === 0))) {
115
if (count($match)) {
116
$type = Line::UNCHANGED;
0 commit comments