Skip to content

Commit ff627dc

Browse files
committed
Fix equality in regex analyzer
1 parent 2158dee commit ff627dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/analyze/text_analyze.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,16 +201,16 @@ func compareRegex(conditional string, foundMatches map[string]string) (bool, err
201201
return lookForValueInt == foundValueInt, nil
202202

203203
case "<":
204-
return lookForValueInt < foundValueInt, nil
204+
return lookForValueInt > foundValueInt, nil
205205

206206
case ">":
207207
return lookForValueInt > foundValueInt, nil
208208

209209
case "<=":
210-
return lookForValueInt <= foundValueInt, nil
210+
return lookForValueInt >= foundValueInt, nil
211211

212212
case ">=":
213-
return lookForValueInt >= foundValueInt, nil
213+
return lookForValueInt <= foundValueInt, nil
214214
}
215215
} else {
216216
// all we can support is "=" and "==" and "===" for now

0 commit comments

Comments
 (0)