mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Changed jumps from index based to label base. Updated test.
This commit is contained in:
parent
7abda44fd6
commit
f01c0adee2
5 changed files with 78 additions and 28 deletions
|
@ -142,9 +142,9 @@ const OperationConfig = {
|
|||
flowControl: true,
|
||||
args: [
|
||||
{
|
||||
name: "Number of operations to jump over",
|
||||
type: "number",
|
||||
value: 0
|
||||
name: "The Label to Jump to",
|
||||
type: "string",
|
||||
value: ""
|
||||
},
|
||||
{
|
||||
name: "Maximum jumps (if jumping backwards)",
|
||||
|
@ -171,9 +171,9 @@ const OperationConfig = {
|
|||
value: false
|
||||
},
|
||||
{
|
||||
name: "Number of operations to jump over if match found",
|
||||
type: "number",
|
||||
value: 0
|
||||
name: "The Label to Jump to",
|
||||
type: "string",
|
||||
value: ""
|
||||
},
|
||||
{
|
||||
name: "Maximum jumps (if jumping backwards)",
|
||||
|
@ -182,6 +182,20 @@ const OperationConfig = {
|
|||
}
|
||||
]
|
||||
},
|
||||
"Label": {
|
||||
module: "Default",
|
||||
description: "Provides a place to write comments within the flow of the recipe. This operation has no computational effect.",
|
||||
inputType: "string",
|
||||
outputType: "string",
|
||||
flowControl: true,
|
||||
args: [
|
||||
{
|
||||
name: "Jump Label",
|
||||
type: "string",
|
||||
value: ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"Return": {
|
||||
module: "Default",
|
||||
description: "End execution of operations at this point in the recipe.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue