mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Fix: Reverse highlights unwind incorrectly
This commit is contained in:
parent
7c8be12d52
commit
5dbfbb1879
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,8 @@ class Chef {
|
||||||
|
|
||||||
if (!highlights) return false;
|
if (!highlights) return false;
|
||||||
|
|
||||||
|
if (direction === "reverse") highlights.reverse();
|
||||||
|
|
||||||
for (let i = 0; i < highlights.length; i++) {
|
for (let i = 0; i < highlights.length; i++) {
|
||||||
// Remove multiple highlights before processing again
|
// Remove multiple highlights before processing again
|
||||||
pos = [pos[0]];
|
pos = [pos[0]];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue