x-spreadsheet demo avoid parseFloat [ci skip]
This commit is contained in:
parent
9f8ec25845
commit
f1480ebd2e
@ -91,8 +91,8 @@ function xtos(sdata) {
|
||||
if (!cellText) {
|
||||
cellText = "";
|
||||
type = "z";
|
||||
} else if (!isNaN(parseFloat(cellText))) {
|
||||
cellText = parseFloat(cellText);
|
||||
} else if (!isNaN(Number(cellText))) {
|
||||
cellText = Number(cellText);
|
||||
type = "n";
|
||||
} else if (cellText.toLowerCase() === "true" || cellText.toLowerCase() === "false") {
|
||||
cellText = Boolean(cellText);
|
||||
|
Loading…
Reference in New Issue
Block a user