Skip to content

Commit

Permalink
catamphetamine#22. Fixed empty xl/sharedStrings.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
purecatamphetamine committed Apr 10, 2019
1 parent 5a7db7b commit 62d1da2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/readXlsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ function parseSheet(content, xml, values, styles, properties, options) {
}

function parseValues(content, xml) {
if (!content) {
return []
}
const strings = xml.createDocument(content)
return xml.select(strings, null, '//a:si', namespaces)
.map(string => xml.select(strings, string, './/a:t[not(ancestor::a:rPh)]', namespaces).map(_ => _.textContent).join(''))
Expand Down

0 comments on commit 62d1da2

Please sign in to comment.