mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-11 16:51:31 -04:00
Comments/Documentation
This commit is contained in:
parent
72a76e098b
commit
ac2b9d1d33
2 changed files with 10 additions and 2 deletions
|
@ -4,7 +4,7 @@ import Recipe from "../Recipe.mjs";
|
|||
import Dish from "../Dish.mjs";
|
||||
import {detectFileType} from "./FileType.mjs";
|
||||
import chiSquared from "chi-squared";
|
||||
import potentialOps from "./Test.mjs";
|
||||
import potentialOps from "./MagicObject.mjs";
|
||||
import { isType } from "./FileType.mjs";
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
import OperationConfig from "../config/OperationConfig.json";
|
||||
|
||||
/**
|
||||
*
|
||||
* An object used by magic to store the input/output criteria for valid operation results.
|
||||
*/
|
||||
class potentialOps {
|
||||
|
||||
/**
|
||||
* PotentialOps constructor.
|
||||
*
|
||||
* @param prevOp
|
||||
*/
|
||||
|
@ -24,6 +25,7 @@ class potentialOps {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the output regexes for the operation.
|
||||
*
|
||||
* @param outputRegexes
|
||||
*/
|
||||
|
@ -33,6 +35,7 @@ class potentialOps {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the input regexes for the operation.
|
||||
*
|
||||
* @param inputRegexes
|
||||
*/
|
||||
|
@ -42,14 +45,19 @@ class potentialOps {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the operations input regexes.
|
||||
*
|
||||
* @returns {Object[]}
|
||||
*/
|
||||
getInputRegexes () {
|
||||
console.log(typeof this.inputRegexes);
|
||||
return this.inputRegexes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the operations output regexes.
|
||||
*
|
||||
* @returns {Object[]}
|
||||
*/
|
||||
getOutputRegexes () {
|
||||
return this.outputRegexes;
|
Loading…
Add table
Add a link
Reference in a new issue