mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
Fixed recursive matching arguments
This commit is contained in:
parent
47bbefd81f
commit
ba66fd6546
2 changed files with 12 additions and 12 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
import HTMLOperation from "../HTMLOperation.mjs";
|
||||
import Sortable from "sortablejs";
|
||||
import {fuzzyMatch} from "../../core/lib/FuzzySearch.mjs";
|
||||
import {fuzzyMatch, calcMatchRanges} from "../../core/lib/FuzzySearch.mjs";
|
||||
|
||||
|
||||
/**
|
||||
|
@ -123,7 +123,7 @@ class OperationsWaiter {
|
|||
if (nameMatch || descPos >= 0) {
|
||||
const operation = new HTMLOperation(opName, this.app.operations[opName], this.app, this.manager);
|
||||
if (highlight) {
|
||||
operation.highlightSearchStrings(idxs || [], [[descPos, searchStr.length]]);
|
||||
operation.highlightSearchStrings(calcMatchRanges(idxs) || [], [[descPos, searchStr.length]]);
|
||||
}
|
||||
|
||||
if (nameMatch) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue