mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Consistency modifications
This commit is contained in:
@@ -11,10 +11,10 @@ import Utils from "./Utils.js";
|
|||||||
* @param {byteArray|string|number} value - The value of the input data.
|
* @param {byteArray|string|number} value - The value of the input data.
|
||||||
* @param {number} type - The data type of value, see Dish enums.
|
* @param {number} type - The data type of value, see Dish enums.
|
||||||
*/
|
*/
|
||||||
function Dish(value, type) {
|
const Dish = function(value, type) {
|
||||||
this.value = value || typeof value == "string" ? value : null;
|
this.value = value || typeof value == "string" ? value : null;
|
||||||
this.type = type || Dish.BYTE_ARRAY;
|
this.type = type || Dish.BYTE_ARRAY;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ Ingredient.prototype.setValue = function(value) {
|
|||||||
*/
|
*/
|
||||||
Ingredient.prepare = function(data, type) {
|
Ingredient.prepare = function(data, type) {
|
||||||
let number;
|
let number;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "binaryString":
|
case "binaryString":
|
||||||
case "binaryShortString":
|
case "binaryShortString":
|
||||||
|
|||||||
Reference in New Issue
Block a user