fix(DbcReader): revert parsing

This commit is contained in:
Axel Cocat 2022-06-21 01:28:04 +02:00
parent 6116fea58e
commit dda4aae6f6

View file

@ -223,8 +223,10 @@ class DbcReader<T> {
for await (const arr of itr) {
const cols = arr.map((value) => {
const parsed = parseInt(value, 10);
return isNaN(parsed) ? value : parsed;
if (value === "") {
return value;
}
return isNaN(+value) ? value : parseInt(value, 10);
});
const row = {};
headerCols.forEach((header, headerIdx) => {