diff --git a/grype/version/constraint_unit_test.go b/grype/version/constraint_unit_test.go index 5e80c11c..50dacde2 100644 --- a/grype/version/constraint_unit_test.go +++ b/grype/version/constraint_unit_test.go @@ -28,6 +28,14 @@ func TestSplitFuzzyPhrase(t *testing.T) { version: "in<(b e t w e e n)>quotes<=||>=not!=", }, }, + { + // to cover a version that has quotes within it, but not necessarily surrounding the entire version + phrase: ` >= inbet"ween)>quotes" with trailing words `, + expected: &constraintUnit{ + rangeOperator: GTE, + version: `inbet"ween)>quotes" with trailing words`, + }, + }, { phrase: `="something"`, expected: &constraintUnit{