sheetjs icon indicating copy to clipboard operation
sheetjs copied to clipboard

Code is not protected for incorrect user input

Open gibito opened this issue 5 years ago • 1 comments

HTR:

1)use this as format string: [red]-##,# 2) jj=ostr.length-1; will break with length of undefined

gibito avatar May 09 '20 07:05 gibito

I get an error message on this one:

console.log(SSF.format("[red]-##,#", 1))
error: Error: unsupported format |##,#|

If I put the comma in the proper place, then it works as expected:

console.log(SSF.format("[red]-#,###", 1))
-1

snoopyjc avatar Oct 03 '20 15:10 snoopyjc