mirror of
https://github.com/gchq/CyberChef
synced 2025-12-31 23:53:49 +00:00
Fix ingredient type conversion for null number
This commit is contained in:
@@ -113,6 +113,7 @@ class Ingredient {
|
||||
return data;
|
||||
}
|
||||
case "number":
|
||||
if (data === null) return 0;
|
||||
number = parseFloat(data);
|
||||
if (isNaN(number)) {
|
||||
const sample = Utils.truncate(data.toString(), 10);
|
||||
|
||||
Reference in New Issue
Block a user