From 88fb7e59f55b2502d4093bd98f8a0202cc5d51be Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Sun, 21 Apr 2024 04:46:14 -0700 Subject: [PATCH] fix: csv parser ignoring last entry --- app/scripts/util/data/csv-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/util/data/csv-parser.js b/app/scripts/util/data/csv-parser.js index e553bc05..df870ea5 100644 --- a/app/scripts/util/data/csv-parser.js +++ b/app/scripts/util/data/csv-parser.js @@ -12,7 +12,7 @@ class CsvParser { this.result = []; this.next = this.handleBeforeValue; this.index = 0; - while (this.next && this.index <= this.csv.length) { + while (this.next && this.index < this.csv.length) { this.next = this.next(this); } if (this.lines.length <= 1) {