From d83986d31c9db0e5164d6fa23cc30e79c07184fb Mon Sep 17 00:00:00 2001
From: LieJiang <254429775@qq.com>
Date: Wed, 22 Mar 2017 23:21:01 +0800
Subject: [PATCH] SSF undefined string guard (fixes #584)
note: @sheetjsdev authored commit, original PR date/author used
---
bits/42_sstxml.js | 1 +
test.js | 2 +-
xlsx.flow.js | 1 +
xlsx.js | 1 +
4 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/bits/42_sstxml.js b/bits/42_sstxml.js
index f49643a..5de5c4c 100644
--- a/bits/42_sstxml.js
+++ b/bits/42_sstxml.js
@@ -201,6 +201,7 @@ function write_sst_xml(sst/*:SST*/, opts)/*:string*/ {
if(s.r) sitag += s.r;
else {
sitag += "" + escapexml(s.t) + "";
}
diff --git a/test.js b/test.js
index cac1f91..ea54c6c 100644
--- a/test.js
+++ b/test.js
@@ -1156,7 +1156,7 @@ describe('json output', function() {
it('should handle raw data if requested', function() {
var _ws = sheet_from_array_of_arrays(data, {cellDates:true});
var json = X.utils.sheet_to_json(_ws, {header:1, raw:true});
- console.log(json, typeof json[2][2]);
+ //console.log(json, typeof json[2][2]);
assert.equal(json.length, data.length);
assert.equal(json[1][0], true);
assert.equal(json[2][1], "bar");
diff --git a/xlsx.flow.js b/xlsx.flow.js
index 5f783c4..eec1c3c 100644
--- a/xlsx.flow.js
+++ b/xlsx.flow.js
@@ -4812,6 +4812,7 @@ function write_sst_xml(sst/*:SST*/, opts)/*:string*/ {
if(s.r) sitag += s.r;
else {
sitag += "" + escapexml(s.t) + "";
}
diff --git a/xlsx.js b/xlsx.js
index 08011e9..bef96cf 100644
--- a/xlsx.js
+++ b/xlsx.js
@@ -4758,6 +4758,7 @@ function write_sst_xml(sst, opts) {
if(s.r) sitag += s.r;
else {
sitag += "" + escapexml(s.t) + "";
}