Skip to content

Commit

Permalink
Fix: table keys with quotes should be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
lvancraen committed Jul 29, 2019
1 parent 98881dc commit 5958ea4
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 5958ea4

Please sign in to comment.