Fix typo in CPE-parsing error (#966)

This commit is contained in:
Rob Dimsdale-Zucker 2022-04-22 12:08:44 -04:00 committed by GitHub
parent 172ecc0d77
commit c270ee2a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
c, err := newCPEWithoutValidation(cpeStr)
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