mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-18 00:45:47 +00:00
fix: parse csv files with uneven columns in their rows (#5965)
This commit is contained in:
parent
847d08bdd1
commit
5328e80d2e
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue