Skip to content

Commit b8594e1

Browse files
authored
Merge pull request #396 from rtfpessoa/improve-git-diff-support
clean: Improve git diff support
2 parents 9987e7c + 6ad7f00 commit b8594e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diff-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export function parse(diffInput: string, config: DiffParserConfig = {}): DiffFil
276276
startFile();
277277

278278
// diff --git a/blocked_delta_results.png b/blocked_delta_results.png
279-
const gitDiffStart = /^diff --git "?(.+)"? "?(.+)"?/;
279+
const gitDiffStart = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/;
280280
if ((values = gitDiffStart.exec(line))) {
281281
possibleOldName = getFilename(values[1], undefined, config.dstPrefix);
282282
possibleNewName = getFilename(values[2], undefined, config.srcPrefix);

0 commit comments

Comments
 (0)