Skip to content

Commit

Permalink
Fix cycle operator crashing if step size is larger than the number of…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jermolene committed Mar 26, 2024
1 parent 31ec1bd commit 801ed0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/filters/x-listops.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Extended filter operators to manipulate the current list.
}
if(resultsIndex !== -1) {
i = i + step;
nextOperandIndex = (i < opLength ? i : i - opLength);
nextOperandIndex = (i < opLength ? i : i % opLength);
if(operands.length > 1) {
results.splice(resultsIndex,1,operands[nextOperandIndex]);
} else {
Expand Down

0 comments on commit 801ed0e

Please sign in to comment.