mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-11 16:51:31 -04:00
A fix to the slight looping problem
This commit is contained in:
parent
f2b596c638
commit
49a05c5d73
1 changed files with 3 additions and 1 deletions
|
@ -102,12 +102,14 @@ class potentialOps {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Generates the list of all the operations that have a valid output.
|
||||||
*
|
*
|
||||||
|
* @returns {Object[]}
|
||||||
*/
|
*/
|
||||||
generateOutputOpPatterns() {
|
generateOutputOpPatterns() {
|
||||||
const opPatterns = [];
|
const opPatterns = [];
|
||||||
for (const op in OperationConfig) {
|
for (const op in OperationConfig) {
|
||||||
if (!(OperationConfig[op].outputRegexes)) continue;
|
if (!(OperationConfig[op].outputRegexes) && (OperationConfig[op].inputRegexes)) continue;
|
||||||
|
|
||||||
OperationConfig[op].outputRegexes.forEach(pattern => {
|
OperationConfig[op].outputRegexes.forEach(pattern => {
|
||||||
opPatterns.push({
|
opPatterns.push({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue