react-spreadsheet-import
react-spreadsheet-import copied to clipboard
Columns are matched by field key rather than label
In the MatchColumns step, when matches are found using Levenstein distance, the field.key is passed to the lavenstein function instead of field.label. According to the readme, the label is used for matching columns. So either the findMatch function is wrong or the readme is wrong. If it's the former, I have opened a PR for it.