commit 1ee65e9bfc7dbf70fd3f2e80d2e776a7e758de24
parent c5cacf7cbe6e880428afadad2ef1f28b6d09ada8
Author: Pierre-Rudolf Gerlach <pgerlach@gmail.com>
Date: Thu, 30 Mar 2023 05:43:53 +0200
fix: strip the UTF8 BOM (#85)
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."
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/import.js b/import.js
@@ -13,6 +13,7 @@ const importFile = (octokit, file, values) => {
data,
{
trim: true,
+ bom: true,
},
(err, csvRows) => {
if (err) throw err;