Fix rare whitespace issue

This commit is contained in:
Kuba Orlik 2025-02-08 13:51:03 +01:00
parent 9fb888c59d
commit 75b609fac5

View File

@ -107,7 +107,10 @@ ${this.formatPerson()}
}
class Range {
constructor(public date_start: Date, public date_end: Date) {}
constructor(
public date_start: Date,
public date_end: Date
) {}
}
abstract class CSVParser {
@ -142,7 +145,12 @@ class mBankParser extends CSVParser {
const transactions = [];
for (let i = 38; i <= last - 5; i++) {
const line = lines[i];
if (line.length == 10 && line[9] == "") {
line.splice(9);
console.log(line);
}
if (line.length != 9) {
console.log({ line });
throw new Error(
"Wrong amount of columns! maybe a semicolon got stuck in a transaction description?"
);