Update vulnscan/version/constraint_part.go

Co-authored-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
Alex Goodman 2020-07-08 14:43:28 -04:00 committed by GitHub
parent 765d5dfb5b
commit 7e4dad7c76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ type constraintPart struct {
func splitConstraintPhrase(phrase string) ([]constraintPart, error) {
// this implies that the returned set of constraint parts should be ANDed together
if strings.Contains(phrase, "||") {
return nil, fmt.Errorf("or operator (||) unsupported for constraints")
return nil, fmt.Errorf("'||' operator (OR) is unsupported for constraints")
}
matches := constraintPartPattern.FindAllStringSubmatch(phrase, -1)