mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Preserve null data when type is number in prepare
This commit is contained in:
parent
293a95e938
commit
1197859865
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ class Ingredient {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
case "number":
|
case "number":
|
||||||
if (data === null) return 0;
|
if (data === null) return data;
|
||||||
number = parseFloat(data);
|
number = parseFloat(data);
|
||||||
if (isNaN(number)) {
|
if (isNaN(number)) {
|
||||||
const sample = Utils.truncate(data.toString(), 10);
|
const sample = Utils.truncate(data.toString(), 10);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue