We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e854c commit fca58aeCopy full SHA for fca58ae
lib/gtfsplus/reducers/gtfsplus.js
@@ -3,7 +3,6 @@
3
import update from 'react-addons-update'
4
5
import {constructNewGtfsPlusRow} from '../util'
6
-
7
import type {Action} from '../../types/actions'
8
import type {GtfsPlusReducerState} from '../../types/reducers'
9
@@ -58,7 +57,7 @@ const gtfsplus = (
58
57
continue
59
}
60
const fields = lines[0].split(',')
61
- const COLUMN_REGEX = /,(?=(?:(?:[^"]*"){2})*[^"]*$)/
+ const COLUMN_REGEX = / *, *(?=(?:(?:[^"]*"){2})*[^"]*$)/
62
const tableName = filename.split('.')[0]
63
newTableData[tableName] = lines.slice(1)
64
// Do not include blank lines (e.g., at the end of the file).
0 commit comments