return thresholds for expressions with less/greater than or equal
This commit is contained in:
@@ -706,7 +706,7 @@ function filterEnabledTargets(targets) {
|
||||
}
|
||||
|
||||
function getTriggerThreshold(expression) {
|
||||
let thresholdPattern = /.*[<>]([\d\.]+)/;
|
||||
let thresholdPattern = /.*[<>=]{1,2}([\d\.]+)/;
|
||||
let finded_thresholds = expression.match(thresholdPattern);
|
||||
if (finded_thresholds && finded_thresholds.length >= 2) {
|
||||
let threshold = finded_thresholds[1];
|
||||
|
||||
Reference in New Issue
Block a user