fix: parse csv files with uneven columns in their rows (#5965)

This commit is contained in:
Ariel Leyva 2026-06-03 05:22:05 -04:00 committed by GitHub
parent 847d08bdd1
commit 5328e80d2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,7 +138,11 @@ watchEffect(() => {
: props.content;
parse(
content as string,
{ delimiter: columnSeparator.value, skip_empty_lines: true },
{
delimiter: columnSeparator.value,
skip_empty_lines: true,
relax_column_count: true,
},
(error, output) => {
if (error) {
console.error("Failed to parse CSV:", error);