mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-20 14:39:34 +02:00
fix: condition fixed
This commit is contained in:
@@ -21,7 +21,7 @@ export function csvRowsToColumns(
|
||||
.split('\n')
|
||||
.map((row) => row.split(','))
|
||||
.filter(
|
||||
(row) => row.length > 1 && !row[0].trim().startsWith(commentCharacter)
|
||||
(row) => row.length > 0 && !row[0].trim().startsWith(commentCharacter)
|
||||
);
|
||||
const columnCount = Math.max(...rows.map((row) => row.length));
|
||||
for (let i = 0; i < rows.length; i++) {
|
||||
|
Reference in New Issue
Block a user