mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
add all options to argOptions. Add some extra test case for Zip
This commit is contained in:
parent
a1b116d2f5
commit
b48a55bd74
3 changed files with 45 additions and 11 deletions
|
@ -141,9 +141,21 @@ function createArgOptions(op) {
|
|||
const result = {};
|
||||
op.args.forEach((a) => {
|
||||
if (a.type === "option" || a.type === "editableOption") {
|
||||
result[sentenceToCamelCase(a.name)] = removeSubheadingsFromArray(a.value);
|
||||
result[sentenceToCamelCase(a.name)] = {
|
||||
type: a.type,
|
||||
options: removeSubheadingsFromArray(a.value)
|
||||
};
|
||||
} else if (a.type === "toggleString") {
|
||||
result[sentenceToCamelCase(a.name)] = removeSubheadingsFromArray(a.toggleValues);
|
||||
result[sentenceToCamelCase(a.name)] = {
|
||||
type: a.type,
|
||||
value: a.value,
|
||||
toggleValues: removeSubheadingsFromArray(a.toggleValues),
|
||||
};
|
||||
} else {
|
||||
result[sentenceToCamelCase(a.name)] = {
|
||||
type: a.type,
|
||||
value: a.value,
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue