Commit 66643e0906de058cd0c4a4bbfaa154175f6c37ce

Authored by Marko Tikvić
1 parent 4f226ef305
Exists in master

added support for !=

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
... ... @@ -106,9 +106,9 @@ func MakeFilterString(prefix string, filters Filter, validFilters []string) (res
106 106  
107 107 res += "("
108 108 for i, f := range filter {
109   - if strings.HasPrefix(f, "<") || strings.HasPrefix(f, ">") {
  109 + if strings.HasPrefix(f, "<") || strings.HasPrefix(f, ">") || strings.HasPrefix(f, "!") {
110 110 symbol = string(f[0])
111   - f = strings.TrimLeft(f, "<>")
  111 + f = strings.TrimLeft(f, "<>!")
112 112 if strings.HasPrefix(f, "=") {
113 113 f = strings.TrimLeft(f, "=")
114 114 symbol += "="
... ...