Code is not protected for incorrect user input #2567

Open
opened 2020-05-09 07:21:45 +00:00 by gibito · 1 comment
gibito commented 2020-05-09 07:21:45 +00:00 (Migrated from github.com)

HTR:

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

HTR: 1)use this as format string: [red]-##,# 2) `jj=ostr.length-1;` will break with length of undefined
snoopyjc commented 2020-10-03 15:09:12 +00:00 (Migrated from github.com)

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
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
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#2567
No description provided.