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) {
|
for await (const arr of itr) {
|
||||||
const cols = arr.map((value) => {
|
const cols = arr.map((value) => {
|
||||||
const parsed = parseInt(value, 10);
|
if (value === "") {
|
||||||
return isNaN(parsed) ? value : parsed;
|
return value;
|
||||||
|
}
|
||||||
|
return isNaN(+value) ? value : parseInt(value, 10);
|
||||||
});
|
});
|
||||||
const row = {};
|
const row = {};
|
||||||
headerCols.forEach((header, headerIdx) => {
|
headerCols.forEach((header, headerIdx) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue