From 87b5d92669b4910e4978905f31da317b70a3e366 Mon Sep 17 00:00:00 2001 From: Jindra Date: Fri, 14 Jul 2023 09:08:41 +0200 Subject: [PATCH] Fixed undefined variables - QUOTE at line 21524 - _hashIndex at line 21603 - _listIndex at line 21604 - style_builder at line 20830 --- xlsx.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xlsx.js b/xlsx.js index 4e6843436..b031823b1 100644 --- a/xlsx.js +++ b/xlsx.js @@ -20827,7 +20827,7 @@ function write_cfb_ctr(cfb, o) { function write_zip_type(wb, opts) { var o = opts||{}; - style_builder = new StyleBuilder(opts); + var style_builder = new StyleBuilder(opts); var z = write_zip(wb, o); var oopts = {}; if(o.compression) oopts.compression = 'DEFLATE'; @@ -21521,7 +21521,7 @@ var XmlNode = (function () { return this; } - var APOS = "'"; QUOTE = '"' + var APOS = "'", QUOTE = '"'; var ESCAPED_QUOTE = { } ESCAPED_QUOTE[QUOTE] = '"' ESCAPED_QUOTE[APOS] = ''' @@ -21600,8 +21600,8 @@ var StyleBuilder = function (options) { // cache style specs to avoid excessive duplication - _hashIndex = {}; - _listIndex = []; + let _hashIndex = {}; + let _listIndex = []; return {