Update xlsx.js

write file whit bookSST true, it goes wrong,this can fix it.
This commit is contained in:
Joshua Bloch 2017-03-07 20:22:02 +08:00 committed by GitHub
parent 1b44629a2c
commit a8ecd1e6d5

View File

@ -4474,7 +4474,7 @@ function write_sst_xml(sst, opts) {
if(s.r) sitag += s.r;
else {
sitag += "<t";
if(s.t.match(straywsregex)) sitag += ' xml:space="preserve"';
if((String)(s.t).match(straywsregex)) sitag += ' xml:space="preserve"';
sitag += ">" + escapexml(s.t) + "</t>";
}
sitag += "</si>";