return thresholds for expressions with less/greater than or equal

This commit is contained in:
akotynski
2017-10-23 13:42:47 +02:00
parent c8205b30c3
commit a15d704b86
7 changed files with 329 additions and 11 deletions

View File

@@ -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];