Skip to content

Commit

Permalink
Update parse.ts
Browse files Browse the repository at this point in the history
fix new line for windows
  • Loading branch information
bill2004158 authored Mar 18, 2021
1 parent 5c2c92b commit 75af92a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/patch/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const hunkLinetypes: {
"\\": "pragma",
// Treat blank lines as context
undefined: "context",
"\r": "context",
}

function parsePatchLines(
Expand Down

0 comments on commit 75af92a

Please sign in to comment.