Fix equality in regex analyzer

This commit is contained in:
Marc Campbell
2020-03-07 21:28:17 +00:00
parent 2158dee58d
commit ff627dcf83
+3 -3
View File
@@ -201,16 +201,16 @@ func compareRegex(conditional string, foundMatches map[string]string) (bool, err
return lookForValueInt == foundValueInt, nil
case "<":
return lookForValueInt < foundValueInt, nil
return lookForValueInt > foundValueInt, nil
case ">":
return lookForValueInt > foundValueInt, nil
case "<=":
return lookForValueInt <= foundValueInt, nil
return lookForValueInt >= foundValueInt, nil
case ">=":
return lookForValueInt >= foundValueInt, nil
return lookForValueInt <= foundValueInt, nil
}
} else {
// all we can support is "=" and "==" and "===" for now