mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 16:56:15 -04:00
reset loop counter after last run
This commit is contained in:
parent
3f57711c39
commit
1fea9a25a5
2 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,7 @@ class Jump extends Operation {
|
|||
const jmpIndex = getLabelIndex(label, state);
|
||||
|
||||
if (state.numJumps >= maxJumps || jmpIndex === -1) {
|
||||
state.numJumps = 0;
|
||||
return state;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue