From 21d77b6842d6f73362cfc18d99000da0be31d15e Mon Sep 17 00:00:00 2001 From: Ryan Park Date: Wed, 6 Mar 2019 09:54:25 +0900 Subject: [PATCH] Parser tries to replace diffLine object, not its data --- src/diff-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diff-parser.js b/src/diff-parser.js index 57892cb..6033623 100644 --- a/src/diff-parser.js +++ b/src/diff-parser.js @@ -191,7 +191,7 @@ } var diffLines = - diffInput.replace(/\\ No newline at end of file/g, '') + diffInput.data.replace(/\\ No newline at end of file/g, '') .replace(/\r\n?/g, '\n') .split('\n');