Commit 681b50f4 authored by joshua-gould's avatar joshua-gould

not before term

parent dfb0614b
...@@ -998,6 +998,11 @@ morpheus.Util.createSearchPredicates = function(options) { ...@@ -998,6 +998,11 @@ morpheus.Util.createSearchPredicates = function(options) {
tokens tokens
.forEach(function(token) { .forEach(function(token) {
var isNot = false;
if (token[0] === '-') { // not predicate
token = token.substring(1);
isNot = true;
}
var field = null; var field = null;
var semi = token.indexOf(':'); var semi = token.indexOf(':');
if (semi > 0) { // field search? if (semi > 0) { // field search?
...@@ -1031,11 +1036,7 @@ morpheus.Util.createSearchPredicates = function(options) { ...@@ -1031,11 +1036,7 @@ morpheus.Util.createSearchPredicates = function(options) {
} }
} }
} }
var isNot = false;
if (token[0] === '-') { // not predicate
token = token.substring(1);
isNot = true;
}
var predicate; var predicate;
var rangeIndex = -1; var rangeIndex = -1;
var rangeToken = null; var rangeToken = null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment