Skip to content

Commit

Permalink
fix: strip the UTF8 BOM (#85)
Browse files Browse the repository at this point in the history
We read the input file as UTF8, and in csv-parse documentation is
written "It is recommended to always activate this option when working
with UTF-8 files."
  • Loading branch information
pgerlach authored Mar 30, 2023
1 parent c5cacf7 commit 1ee65e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions import.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const importFile = (octokit, file, values) => {
data,
{
trim: true,
bom: true,
},
(err, csvRows) => {
if (err) throw err;
Expand Down

0 comments on commit 1ee65e9

Please sign in to comment.