Skip to content

Commit

Permalink
Bug fix - data sanitization on export
Browse files Browse the repository at this point in the history
Signed-off-by: Angelica Ochoa <15623749+ao508@users.noreply.github.com>
  • Loading branch information
ao508 committed Aug 27, 2024
1 parent 5f11a71 commit d0306e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/stringBuilders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function buildTsvString(rows: any[], colDefs: ColDef[]) {
return " ";
})
)
.map((value) => value.join("\t"));
.map((value) => value.join("\t").replace(/(\r\n|\n|\r)/gm, ""));

return [colHeadersAsTsvRow, ...rowsAsTsvRows].join("\n");
}
Expand Down

0 comments on commit d0306e1

Please sign in to comment.