Skip to content

Commit

Permalink
Merge pull request #396 from rtfpessoa/improve-git-diff-support
Browse files Browse the repository at this point in the history
clean: Improve git diff support
  • Loading branch information
rtfpessoa committed Jul 9, 2021
2 parents 9987e7c + 6ad7f00 commit b8594e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8594e1

Please sign in to comment.