Modify no newline parser regex to be an else if
This commit is contained in:
parent
e8aadb0785
commit
042fd60faf
1 changed files with 1 additions and 2 deletions
|
|
@ -470,8 +470,7 @@ export function parse(diffInput: string, config: DiffParserConfig = {}): DiffFil
|
|||
} else if ((values = combinedDeletedFile.exec(line))) {
|
||||
currentFile.deletedFileMode = values[1];
|
||||
currentFile.isDeleted = true;
|
||||
}
|
||||
if (line.match(noNewlineAtEndOfFile)) {
|
||||
} else if (line.match(noNewlineAtEndOfFile)) {
|
||||
createLine(line);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue