mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 17:03:17 +01:00
Fix typo in CPE-parsing error (#966)
This commit is contained in:
parent
172ecc0d77
commit
c270ee2a02
@ -30,7 +30,7 @@ func NewCPE(cpeStr string) (CPE, error) {
|
|||||||
// get a CPE object based on the given string --don't validate yet since it may be possible to escape select cases on the callers behalf
|
// get a CPE object based on the given string --don't validate yet since it may be possible to escape select cases on the callers behalf
|
||||||
c, err := newCPEWithoutValidation(cpeStr)
|
c, err := newCPEWithoutValidation(cpeStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return CPE{}, fmt.Errorf("unable to prase CPE string: %w", err)
|
return CPE{}, fmt.Errorf("unable to parse CPE string: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ensure that this CPE can be validated after being fully sanitized
|
// ensure that this CPE can be validated after being fully sanitized
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user