Skip to content

Commit 75af92a

Browse files
authored
Update parse.ts
fix new line for windows
1 parent 5c2c92b commit 75af92a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/patch/parse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ const hunkLinetypes: {
142142
"\\": "pragma",
143143
// Treat blank lines as context
144144
undefined: "context",
145+
"\r": "context",
145146
}
146147

147148
function parsePatchLines(

0 commit comments

Comments
 (0)