Open nayrutes opened 1 year ago
If there is a specific file format that uses tab-seperated values, this could be added as a flag onto the FormatMapping
structure and then passed to papa-parse as the "delimiter" option. This only becomes relevant once a bank statement format that is built this way is added though :)
Idea: detecting filename extension (.tsv or .tab) and converting all tabs '\t' with ','.
function convertTsvToCsv(tsvData: string): string { return tsvData.replace(/\t/g, ','); }
Ps.: I would have created a pull request but I didn't find the correct place to add this to.