mirror of https://github.com/gchq/CyberChef.git
Merge 8ffa6ace2f
into bbebba6481
This commit is contained in:
commit
1413a3e324
|
@ -116,6 +116,8 @@ class Ingredient {
|
|||
}
|
||||
case "number":
|
||||
if (data === null) return data;
|
||||
if (isNaN(data)) throw "Ingredient can not be empty.";
|
||||
|
||||
number = parseFloat(data);
|
||||
if (isNaN(number)) {
|
||||
const sample = Utils.truncate(data.toString(), 10);
|
||||
|
|
Loading…
Reference in New Issue