From 49a05c5d730c01422951043ac7f93d83684b213a Mon Sep 17 00:00:00 2001 From: n1073645 Date: Tue, 3 Dec 2019 15:48:37 +0000 Subject: [PATCH] A fix to the slight looping problem --- src/core/lib/Test.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/lib/Test.mjs b/src/core/lib/Test.mjs index 70d7878b..be05fff9 100644 --- a/src/core/lib/Test.mjs +++ b/src/core/lib/Test.mjs @@ -102,12 +102,14 @@ class potentialOps { } /** + * Generates the list of all the operations that have a valid output. * + * @returns {Object[]} */ generateOutputOpPatterns() { const opPatterns = []; for (const op in OperationConfig) { - if (!(OperationConfig[op].outputRegexes)) continue; + if (!(OperationConfig[op].outputRegexes) && (OperationConfig[op].inputRegexes)) continue; OperationConfig[op].outputRegexes.forEach(pattern => { opPatterns.push({