mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
Jump operations now return the final state when the maximum jump count is reached instead of throwing an error.
This commit is contained in:
parent
baa433ab80
commit
2257754b94
5 changed files with 22 additions and 20 deletions
|
@ -128,7 +128,8 @@ var FlowControl = {
|
|||
max_jumps = ings[1];
|
||||
|
||||
if (state.num_jumps >= max_jumps) {
|
||||
throw "Reached maximum jumps, sorry!";
|
||||
state.progress++;
|
||||
return state;
|
||||
}
|
||||
|
||||
state.progress += jump_num;
|
||||
|
@ -155,7 +156,8 @@ var FlowControl = {
|
|||
max_jumps = ings[2];
|
||||
|
||||
if (state.num_jumps >= max_jumps) {
|
||||
throw "Reached maximum jumps, sorry!";
|
||||
state.progress++;
|
||||
return state;
|
||||
}
|
||||
|
||||
if (regex_str !== "" && dish.get(Dish.STRING).search(regex_str) > -1) {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
206 source files
|
||||
113462 lines
|
||||
113481 lines
|
||||
4.2M size
|
||||
|
||||
137 JavaScript source files
|
||||
104304 lines
|
||||
104323 lines
|
||||
3.7M size
|
||||
|
||||
79 third party JavaScript source files
|
||||
|
@ -11,7 +11,7 @@
|
|||
3.0M size
|
||||
|
||||
58 first party JavaScript source files
|
||||
19252 lines
|
||||
19271 lines
|
||||
728K size
|
||||
|
||||
3.4M uncompressed JavaScript size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue