PR #40 - Skip cells with incorrect link to shared strings

This commit is contained in:
Pieter Sheth-Voss 2016-10-11 09:11:45 -04:00
parent 3c7f807bfa
commit 6e6678960c
12 changed files with 43 additions and 40 deletions

@ -1 +1 @@
XLSX.version = '0.8.13';
XLSX.version = '0.8.16';

@ -238,6 +238,7 @@ return function parse_ws_xml_data(sdata, s, opts, guess) {
if(isNaN(p.v)) p.v = "" // we don't want NaN if p.v is null
break;
case 's':
if (!p.hasOwnProperty('v')) continue;
sstr = strs[parseInt(p.v, 10)];
p.v = sstr.t;
p.r = sstr.r;

@ -2,7 +2,7 @@
"name": "js-xlsx",
"homepage": "https://github.com/SheetJS/js-xlsx",
"main": "dist/xlsx.js",
"version": "0.8.13",
"version": "0.8.16",
"ignore": [
"bin",
"bits",

22
dist/xlsx.core.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

30
dist/xlsx.full.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3
dist/xlsx.js vendored

@ -4,7 +4,7 @@
/*jshint funcscope:true, eqnull:true */
var XLSX = {};
(function make_xlsx(XLSX){
XLSX.version = '0.8.13';
XLSX.version = '0.8.16';
var current_codepage = 1200, current_cptable;
if(typeof module !== "undefined" && typeof require !== 'undefined') {
if(typeof cptable === 'undefined') cptable = require('./dist/cpexcel');
@ -7770,6 +7770,7 @@ return function parse_ws_xml_data(sdata, s, opts, guess) {
if(isNaN(p.v)) p.v = "" // we don't want NaN if p.v is null
break;
case 's':
if (!p.hasOwnProperty('v')) continue;
sstr = strs[parseInt(p.v, 10)];
p.v = sstr.t;
p.r = sstr.r;

12
dist/xlsx.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/xlsx.min.map vendored

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
{
"name": "xlsx",
"version": "0.8.14",
"version": "0.8.16",
"author": "sheetjs",
"description": "Excel (XLSB/XLSX/XLSM/XLS/XML) and ODS spreadsheet parser and writer (extended to enable read/write of cell formats with xlsx files)",
"keywords": [ "excel", "xls", "xlsx", "xlsb", "xlsm", "ods", "office", "spreadsheet" ],

@ -4,7 +4,7 @@
/*jshint funcscope:true, eqnull:true */
var XLSX = {};
(function make_xlsx(XLSX){
XLSX.version = '0.8.13';
XLSX.version = '0.8.16';
var current_codepage = 1200, current_cptable;
if(typeof module !== "undefined" && typeof require !== 'undefined') {
if(typeof cptable === 'undefined') cptable = require('./dist/cpexcel');
@ -7770,6 +7770,7 @@ return function parse_ws_xml_data(sdata, s, opts, guess) {
if(isNaN(p.v)) p.v = "" // we don't want NaN if p.v is null
break;
case 's':
if (!p.hasOwnProperty('v')) continue;
sstr = strs[parseInt(p.v, 10)];
p.v = sstr.t;
p.r = sstr.r;