Skip to content

Commit 9ab4e66

Browse files
authored
Merge pull request #301 from bill2004158/bill2004158-fix-new-line-for-windows
fix Patch file parse error in windows
2 parents 745757d + 75af92a commit 9ab4e66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/patch/parse.ts

+1
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)