forked from sheetjs/sheetjs
updated json output to reflect number headers
This commit is contained in:
parent
65257d219e
commit
c960dca068
5
xlsx.js
5
xlsx.js
@ -387,8 +387,9 @@ function sheet_to_row_object_array(sheet){
|
||||
r: range.s.r
|
||||
})];
|
||||
if(val){
|
||||
if(val.t === "s"){
|
||||
columnHeaders[C] = val.v;
|
||||
switch(val.t) {
|
||||
case "s": case "str": columnHeaders[C] = val.v; break;
|
||||
case "n": columnHeaders[C] = val.v; break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user