s
This commit is contained in:
parent
42d6c8e85f
commit
ddd2f1dfaf
1 changed files with 5 additions and 1 deletions
6
index.js
6
index.js
|
@ -64,7 +64,11 @@ app.use("/updates", express.text());
|
||||||
function diff(current, checked) {
|
function diff(current, checked) {
|
||||||
let lines_current = current.split('\n').map(l => l.trim()).filter(l => l != "");
|
let lines_current = current.split('\n').map(l => l.trim()).filter(l => l != "");
|
||||||
let lines_checked = checked.split('\n').map(l => l.trim()).filter(l => l != "");
|
let lines_checked = checked.split('\n').map(l => l.trim()).filter(l => l != "");
|
||||||
let filenames_checked = lines_checked.map(l => l.split(" ")[0]);
|
let filenames_checked = lines_checked.map(l => {
|
||||||
|
let split = l.split(" ");
|
||||||
|
console.log(`filename map: ${split}`);
|
||||||
|
return split[0] || l;
|
||||||
|
});
|
||||||
|
|
||||||
console.log(lines_current, lines_checked);
|
console.log(lines_current, lines_checked);
|
||||||
console.log(filenames_checked);
|
console.log(filenames_checked);
|
||||||
|
|
Loading…
Reference in a new issue