Skip to content

Commit

Permalink
Trim values in CSV converter
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Sep 28, 2024
1 parent 341e559 commit 3513f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/tools/csv-parser-json-converter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Alice,35,Chicago,Data Scientist,Amazon,Seattle,345-678-9012`;
const obj = {};

headers.forEach((header, index) => {
obj[header] = line[index];
obj[header] = line[index].trim();
});

json.push(obj);
Expand Down

0 comments on commit 3513f3e

Please sign in to comment.