sheetjs
sheetjs copied to clipboard
Code is not protected for incorrect user input
HTR:
1)use this as format string: [red]-##,#
2) jj=ostr.length-1; will break with length of undefined
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