Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "ssf", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "SheetJS", | ||
@@ -5,0 +5,0 @@ "description": "pure-JS library to format data using ECMA-376 spreadsheet Format Codes", |
@@ -260,3 +260,3 @@ /* ssf.js (C) 2013 SheetJS -- http://sheetjs.com */ | ||
case '"': /* Literal text */ | ||
for(o="";fmt[++i] !== '"';) o += fmt[i]; | ||
for(o="";fmt[++i] !== '"' && i < fmt.length;) o += fmt[i]; | ||
out.push({t:'t', v:o}); ++i; break; | ||
@@ -263,0 +263,0 @@ case '\\': var w = fmt[++i], t = "()".indexOf(w) === -1 ? 't' : w; |
@@ -260,3 +260,3 @@ /* ssf.js (C) 2013 SheetJS -- http://sheetjs.com */ | ||
case '"': /* Literal text */ | ||
for(o="";fmt[++i] !== '"';) o += fmt[i]; | ||
for(o="";fmt[++i] !== '"' && i < fmt.length;) o += fmt[i]; | ||
out.push({t:'t', v:o}); ++i; break; | ||
@@ -263,0 +263,0 @@ case '\\': var w = fmt[++i], t = "()".indexOf(w) === -1 ? 't' : w; |
@@ -429,7 +429,10 @@ # SSF | ||
Text between double-quotes are treated literally, and individual characters are | ||
literal if they are preceded by a slash: | ||
literal if they are preceded by a slash. | ||
The additional `i < fmt.length` guard was added due to potentially unterminated | ||
strings generated by LO: | ||
``` | ||
case '"': /* Literal text */ | ||
for(o="";fmt[++i] !== '"';) o += fmt[i]; | ||
for(o="";fmt[++i] !== '"' && i < fmt.length;) o += fmt[i]; | ||
out.push({t:'t', v:o}); ++i; break; | ||
@@ -809,3 +812,3 @@ case '\\': var w = fmt[++i], t = "()".indexOf(w) === -1 ? 't' : w; | ||
"name": "ssf", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "SheetJS", | ||
@@ -812,0 +815,0 @@ "description": "pure-JS library to format data using ECMA-376 spreadsheet Format Codes", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85055