Skip to content

Commit

Permalink
fix(java): improve identification for org.elasticsearch artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Weston Steimel <[email protected]>
  • Loading branch information
westonsteimel committed Dec 1, 2023
1 parent 5d42a34 commit e829696
Show file tree
Hide file tree
Showing 3 changed files with 326 additions and 245 deletions.
2 changes: 1 addition & 1 deletion syft/pkg/cataloger/common/cpe/java.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func GetManifestFieldGroupIDs(manifest *pkg.JavaManifest, fields []string) (grou
}

func cleanGroupID(groupID string) string {
return strings.TrimSpace(removeOSCIDirectives(groupID))
return strings.TrimSpace(strings.Split(removeOSCIDirectives(groupID), "#"))
}

func removeOSCIDirectives(groupID string) string {
Expand Down
Loading

0 comments on commit e829696

Please sign in to comment.