mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
Update vulnscan/version/constraint_part.go
Co-authored-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
parent
765d5dfb5b
commit
7e4dad7c76
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue