introduce fix for issue#1229

https://github.com/SheetJS/js-xlsx/issues/1229
This commit is contained in:
Michihito Osanai 2018-08-22 13:47:23 +09:00 committed by GitHub
parent d3d5bfc988
commit ab445c8897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,13 +80,13 @@ function parse_wb_xml(data, opts)/*:WorkbookFile*/ {
/* 18.2.5 definedName CT_DefinedName + */
case '<definedName': {
dname = {};
dname.Name = y.name;
dname.Name = utf8read(y.name);
if(y.comment) dname.Comment = y.comment;
if(y.localSheetId) dname.Sheet = +y.localSheetId;
dnstart = idx + x.length;
} break;
case '</definedName>': {
dname.Ref = data.slice(dnstart, idx);
dname.Ref = unescapexml(utf8read(data.slice(dnstart, idx)));
wb.Names.push(dname);
} break;
case '<definedName/>': break;