We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c096f94 commit c39b1a8Copy full SHA for c39b1a8
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