From 75af92ab024c84a880fd5fbbfe6d789498929a60 Mon Sep 17 00:00:00 2001 From: bill2004158 Date: Thu, 18 Mar 2021 22:03:01 +0800 Subject: [PATCH] Update parse.ts fix new line for windows --- src/patch/parse.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/patch/parse.ts b/src/patch/parse.ts index 97fb533d..8505d754 100644 --- a/src/patch/parse.ts +++ b/src/patch/parse.ts @@ -142,6 +142,7 @@ const hunkLinetypes: { "\\": "pragma", // Treat blank lines as context undefined: "context", + "\r": "context", } function parsePatchLines(