mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +00:00
Fix equality in regex analyzer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user