File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -297,10 +297,10 @@ + (NSString *)parseDiff:(NSString *)txt
297
297
NSScanner *scan=[NSScanner scannerWithString: txt];
298
298
NSString *block;
299
299
300
- [scan scanUpToString: @" diff --git" intoString: NULL ]; // move to first diff
300
+ [scan scanUpToString: @" \n diff --git" intoString: NULL ]; // move to first diff
301
301
302
302
while ([scan scanString: @" diff --git" intoString: NULL ]){ // is a diff start?
303
- [scan scanUpToString: @" diff --git" intoString: &block];
303
+ [scan scanUpToString: @" \n diff --git" intoString: &block];
304
304
[res appendString: [GLFileView parseDiffBlock: [NSString stringWithFormat: @" diff --git %@ " ,block]]];
305
305
}
306
306
@@ -318,7 +318,7 @@ + (NSString *)parseDiffBlock:(NSString *)txt
318
318
[res appendString: [GLFileView parseDiffHeader: block]];
319
319
[res appendString: @" </td></tr></thead><tbody>" ];
320
320
321
- if ([txt rangeOfString: @" Binary files" ].location !=NSNotFound ){
321
+ if ([block rangeOfString: @" Binary files" ].location !=NSNotFound ){
322
322
[res appendString: [GLFileView parseBinaryDiff: block]];
323
323
}
324
324
You can’t perform that action at this time.
0 commit comments