Skip to content

Commit

Permalink
Fix: trimmedKeys should be used in key check
Browse files Browse the repository at this point in the history
  • Loading branch information
lvancraen committed May 15, 2019
1 parent 69cab01 commit 2b34346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ Row: ${parsedFileContent.data[error.row].join(',')}`;

const [keys, ...rows] = parsedFileContent.data;

checkThatKeysIncludeIndexKeys(keys, indexKeys, tableName);

const trimmedKeys = keys.map(key => key.trim());
checkThatKeysIncludeIndexKeys(trimmedKeys, indexKeys, tableName);

const GtfsRow = createGtfsClassForKeys(trimmedKeys);

return processGtfsTableRows(gtfs, tableName, trimmedKeys, rows, indexKeys, GtfsRow);
Expand Down

0 comments on commit 2b34346

Please sign in to comment.