Parser tries to replace diffLine object, not its data

This commit is contained in:
Ryan Park 2019-03-06 09:54:25 +09:00
parent 8055f309da
commit 21d77b6842

View file

@ -191,7 +191,7 @@
} }
var diffLines = 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') .replace(/\r\n?/g, '\n')
.split('\n'); .split('\n');