Merge pull request #71 from iib0011/chesterkxng

fix: edge case (empty string in csv-rows-to-columns)
This commit is contained in:
Ibrahima G. Coulibaly
2025-03-29 11:27:52 +00:00
committed by GitHub

View File

@@ -17,6 +17,10 @@ export function csvRowsToColumns(
customFiller: string,
commentCharacter: string
): string {
if (!input) {
return '';
}
const rows = input
.split('\n')
.map((row) => row.split(','))