Skip to content

Commit

Permalink
Fix equality in regex analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Mar 7, 2020
1 parent 2158dee commit ff627dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/analyze/text_analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff627dc

Please sign in to comment.