We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c5d788 commit d8fd7a5Copy full SHA for d8fd7a5
src/lib/geodata.js
@@ -109,6 +109,9 @@ function parseCsv(csvText) {
109
110
const headers = lines[0].split('\t').map(h => h.trim());
111
console.log("headers", headers);
112
+ if (headers.length < 5) {
113
+ throw new Error("Invalid CSV headers");
114
+ }
115
116
// Pre-allocate array for better performance
117
const rows = new Array(lines.length - 1);
0 commit comments