Skip to content

Commit b8b7ae5

Browse files
authored
Update operators.go
1 parent d3bf411 commit b8b7ae5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

correlation/cache/operators.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ func compare(operator, val1, val2 string) bool {
9494
return in(val1, val2)
9595
case "not in":
9696
return !in(val1, val2)
97-
case "start with":
97+
case "start with", "starts with":
9898
return startWith(val1, val2)
99-
case "not start with":
99+
case "not start with", "not starts with":
100100
return !startWith(val1, val2)
101-
case "end with":
101+
case "end with", "ends with":
102102
return endWith(val1, val2)
103-
case "not end with":
103+
case "not end with", "not ends with":
104104
return !endWith(val1, val2)
105105
case "regexp":
106106
matched, err := expression(val2, val1)
@@ -138,7 +138,7 @@ func compare(operator, val1, val2 string) bool {
138138
return false
139139
}
140140
return f1 >= f2
141-
case "exist":
141+
case "exist", "exists":
142142
return true
143143
case "in cidr":
144144
matched, err := inCIDR(val1, val2)

0 commit comments

Comments
 (0)