add other flowcontrol ops. Update tests

This commit is contained in:
d98762625 2018-05-21 10:58:35 +01:00
parent 046e1ebad9
commit 8ff6596657
15 changed files with 735 additions and 402 deletions

View file

@ -227,7 +227,8 @@ const FlowControl = {
}
if (regexStr !== "") {
const strMatch = await dish.get(Dish.STRING).search(regexStr) > -1;
const str = await dish.get(Dish.STRING)
const strMatch = str.search(regexStr) > -1;
if (!invert && strMatch || invert && !strMatch) {
state.progress = jmpIndex;
state.numJumps++;