disregard line endings when comparing size
This commit is contained in:
parent
ae7561ec6b
commit
3bd189ed4c
@ -74,6 +74,6 @@ exports.getSizeDelta = function (newContent, oldContent) {
|
||||
if (!oldContent) {
|
||||
return 'new';
|
||||
}
|
||||
var delta = newContent.length - oldContent.length;
|
||||
var delta = newContent.replace(/\r\n?/g, '\n').length - oldContent.replace(/\r\n?/g, '\n').length;
|
||||
return (delta >= 0 ? '+' : '') + delta;
|
||||
};
|
Loading…
Reference in New Issue
Block a user