Skip to content

Commit

Permalink
Fix unnecessary quotes in category names
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Jan 25, 2024
1 parent 4baf412 commit b90349f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/trackers/helpers/getCategory.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const parse = require('csv-parse/lib/sync')

function getCategories (categoryCSVfilePath) {
const categoryCSV = fs.readFileSync(categoryCSVfilePath, 'utf8').split('\n')
const categoryHeader = categoryCSV.shift()
.replace(/\r/gi, "")
.split(',').slice(1)
const categoryHeader = parse(categoryCSV.shift())[0].slice(1)

const domainToCategory = categoryCSV.reduce((obj, row) => {

Expand Down

0 comments on commit b90349f

Please sign in to comment.