Skip to content

Commit

Permalink
Fix: table keys with quotes should be removed (#17)
Browse files Browse the repository at this point in the history
Fix: table keys with quotes should be removed
  • Loading branch information
Louis committed Jul 29, 2019
2 parents 98881dc + 5958ea4 commit 9e7c045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function processGtfsTable(gtfs, keys, rowsSlices, tableName, indexKeys) {
}

const parsedKeys = Papa.parse(keys, { delimiter: ',', skipEmptyLines: true });
const trimmedKeys = parsedKeys.data[0].map(key => key.trim());
const trimmedKeys = parsedKeys.data[0].map(key => key.trim().replace(/"/g, ''));
checkThatKeysIncludeIndexKeys(trimmedKeys, indexKeys, tableName);

const GtfsRow = createGtfsClassForKeys(trimmedKeys);
Expand Down

0 comments on commit 9e7c045

Please sign in to comment.