From 66643e0906de058cd0c4a4bbfaa154175f6c37ce Mon Sep 17 00:00:00 2001 From: "marko.tikvic" Date: Mon, 14 Jan 2019 12:31:24 +0100 Subject: [PATCH] added support for != --- filtering.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filtering.go b/filtering.go index 8b1897e..cf577dc 100644 --- a/filtering.go +++ b/filtering.go @@ -106,9 +106,9 @@ func MakeFilterString(prefix string, filters Filter, validFilters []string) (res res += "(" for i, f := range filter { - if strings.HasPrefix(f, "<") || strings.HasPrefix(f, ">") { + if strings.HasPrefix(f, "<") || strings.HasPrefix(f, ">") || strings.HasPrefix(f, "!") { symbol = string(f[0]) - f = strings.TrimLeft(f, "<>") + f = strings.TrimLeft(f, "<>!") if strings.HasPrefix(f, "=") { f = strings.TrimLeft(f, "=") symbol += "=" -- 1.8.1.2