Closed Donskelle closed 6 years ago
I fixed in kinda dirty way. I added a function to tableschema table class using firstline to read first line and set delimiter accordingly.
async function getDelimiter(source) {
try {
const headerLine = await firstline(source)
const test1 = (headerLine.match(/;/g) || []).length;
const test2 = (headerLine.match(/,/g) || []).length;
if (test1 > test2)
return ';'
else
return ','
} catch(e) {
return ','
}
}
Hey Dude, awesome work you've done. Thanks for that.
I have issues using csv data like this:
After i call infer on this csv, it tells me that:
I guess it uses "," and ";" as delimiter. I tried this to solve my issues:
`This resolves in :
Any idea to resolve it?