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

@@ -112,7 +112,7 @@ System.register(['lodash', 'app/core/utils/datemath', './utils', './migrations',
}
function getTriggerThreshold(expression) {
var thresholdPattern = /.*[<>]([\d\.]+)/;
var thresholdPattern = /.*[<>=]{1,2}([\d\.]+)/;
var finded_thresholds = expression.match(thresholdPattern);
if (finded_thresholds && finded_thresholds.length >= 2) {
var threshold = finded_thresholds[1];