Browse Source

fix(csv): assign result of replace in splitCSV else branch

The replace() call in the unquoted-field path was discarding its return
value, leaving "" sequences unescaped instead of collapsing them to ".
pull/15585/head
Ekaterina Chantsova 5 months ago
committed by Vladyslav Prykhodko
parent
commit
af659f36c0
  1. 2
      ui-ngx/src/app/shared/import-export/import-export.models.ts

2
ui-ngx/src/app/shared/import-export/import-export.models.ts

@ -210,7 +210,7 @@ function splitCSV(str: string, sep: string): string[] {
foo = foo.shift().split(sep).concat(foo); foo = foo.shift().split(sep).concat(foo);
} }
} else { } else {
foo[x].replace(/""/g, '"'); foo[x] = foo[x].replace(/""/g, '"');
} }
} }
return foo; return foo;

Loading…
Cancel
Save