3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 08:45:03 +00:00

Allow =0 condition in counter triggers

This commit is contained in:
Dark 2021-07-29 01:14:21 +02:00
parent 0e2b279970
commit 41986c2276

View file

@ -17,7 +17,7 @@ export function getReverseCounterComparisonOp(op: TriggerComparisonOp): TriggerC
return REVERSE_OPS[op]; return REVERSE_OPS[op];
} }
const comparisonStringRegex = new RegExp(`^(${TRIGGER_COMPARISON_OPS.join("|")})([1-9]\\d*)$`); const comparisonStringRegex = new RegExp(`^(${TRIGGER_COMPARISON_OPS.join("|")})(\\d*)$`);
/** /**
* @return Parsed comparison op and value, or null if the comparison string was invalid * @return Parsed comparison op and value, or null if the comparison string was invalid