We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c096f94 + c39b1a8 commit ff9ec1aCopy full SHA for ff9ec1a
src/diffchecker.js
@@ -1,12 +1,12 @@
1
module.exports = {
2
diff: function(ogString, newString) {
3
var diffLines = [];
4
- var ogLines = ogString.split('\n');
+ var ogLines = ogString.split('\n').map(line => line.trim());
5
var ogLinesStripped = []
6
for (var index = 0; index < ogLines.length; index++) {
7
ogLinesStripped.push(ogLines[index].replace(/;/g, ""));
8
}
9
- var newLines = newString.split('\n');
+ var newLines = newString.split('\n').map(line => line.trim());
10
11
for (var index = 0; index < newLines.length; index++) {
12
var lineNumber = index + 1;
0 commit comments