未验证 提交 ab445c88 编写于 作者: M Michihito Osanai 提交者: GitHub

introduce fix for issue#1229

https://github.com/SheetJS/js-xlsx/issues/1229
上级 d3d5bfc9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册