Merge pull request #396 from rtfpessoa/improve-git-diff-support
clean: Improve git diff support
This commit is contained in:
commit
b8594e1994
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ export function parse(diffInput: string, config: DiffParserConfig = {}): DiffFil
|
|||
startFile();
|
||||
|
||||
// diff --git a/blocked_delta_results.png b/blocked_delta_results.png
|
||||
const gitDiffStart = /^diff --git "?(.+)"? "?(.+)"?/;
|
||||
const gitDiffStart = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/;
|
||||
if ((values = gitDiffStart.exec(line))) {
|
||||
possibleOldName = getFilename(values[1], undefined, config.dstPrefix);
|
||||
possibleNewName = getFilename(values[2], undefined, config.srcPrefix);
|
||||
|
|
|
|||
Loading…
Reference in a new issue