diff --git a/.npmignore b/.npmignore index dcaf716..f861188 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1,3 @@ +test_files/ +tests/files/ index.html diff --git a/xlsx.js b/xlsx.js index f2fd59c..1c030f8 100644 --- a/xlsx.js +++ b/xlsx.js @@ -672,7 +672,7 @@ function parseCT(data) { if(!data) return data; var ct = { workbooks: [], sheets: [], calcchains: [], themes: [], styles: [], coreprops: [], extprops: [], strs:[], xmlns: "" }; - data.match(/<[^>]*>/g).forEach(function(x) { + (data.match(/<[^>]*>/g)||[]).forEach(function(x) { var y = parsexmltag(x); switch(y[0]) { case '