Skip to content
This repository was archived by the owner on Jan 14, 2019. It is now read-only.

Commit e9a40c3

Browse files
committed
Merge remote-tracking branch 'origin/splitDiffs' into splitDiffs
2 parents 41e3e29 + a4178de commit e9a40c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/patch/parse.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function parsePatch(uniDiff, options = {}) {
88
list.push(index);
99

1010
// Parse diff metadata
11-
for (; i < diffstr.length; i++) {
11+
while (i < diffstr.length) {
1212
let line = diffstr[i];
1313

1414
// File header found, end parsing diff metadata
@@ -21,6 +21,8 @@ export function parsePatch(uniDiff, options = {}) {
2121
if (header) {
2222
index.index = header[1];
2323
}
24+
25+
i++;
2426
}
2527

2628
parseFileHeader(index);

0 commit comments

Comments
 (0)