use tab as delimiter in intermediate representation

This commit is contained in:
Lachlan
2020-11-12 13:25:39 +00:00
parent f5ada3d326
commit 848d5b20f7

View File

@@ -234,8 +234,8 @@ class LocalFetcher extends Fetcher {
const wb = X.readFile(this.path)
wb.SheetNames.forEach(name => {
const sh = wb.Sheets[name]
const csv = X.utils.sheet_to_csv(sh)
const ll = csv.split('\n').map(line => line.split(','))
const csv = X.utils.sheet_to_csv(sh, { FS: '\t' })
const ll = csv.split('\n').map(line => line.split('\t'))
this.save(name, ll)
})
return Promise.resolve(true)