fix(DbcReader): revert parsing
This commit is contained in:
parent
6116fea58e
commit
dda4aae6f6
1 changed files with 4 additions and 2 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue