We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch node-xlsx@0.4.0 for the project I'm working on.
node-xlsx@0.4.0
I fixed error with NaN in merged cells:
diff --git a/node_modules/node-xlsx/lib/xlsx/xlsx.js b/node_modules/node-xlsx/lib/xlsx/xlsx.js index c626943..29fff59 100644 --- a/node_modules/node-xlsx/lib/xlsx/xlsx.js +++ b/node_modules/node-xlsx/lib/xlsx/xlsx.js @@ -136,7 +136,7 @@ function xlsx(file, options) { cell = columns[k]; f = styles[+getAttr(cell, 's')] || { type: 'General', formatCode: 'General' }; t = getAttr(cell, 't') || f.type; - val = cell.substring(cell.indexOf('<v>') + 3, cell.indexOf('</v>')); + val = cell.indexOf('<v>') !== -1 ? cell.substring(cell.indexOf('<v>') + 3, cell.indexOf('</v>')) : undefined; val = val ? +val : ''; // turn non-zero into number switch (t) { case 's': val = sharedStrings[val]; break;
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
node-xlsx@0.4.0
for the project I'm working on.I fixed error with NaN in merged cells:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: