diff --git a/src/main/java/com/redhat/exhort/providers/GradleProvider.java b/src/main/java/com/redhat/exhort/providers/GradleProvider.java index 3b4ae45..8e9c004 100644 --- a/src/main/java/com/redhat/exhort/providers/GradleProvider.java +++ b/src/main/java/com/redhat/exhort/providers/GradleProvider.java @@ -253,7 +253,7 @@ private Sbom buildSbomFromTextFormat( for (String line : lines) { line = line.replaceAll("---", "-").replaceAll(" ", " "); - line = line.replaceAll(":(.*):(.*) -> (.*)$", ":$1:$3"); + line = line.replaceAll(":(.*):(.*) -> (.*)$", ":$1:$2"); line = line.replaceAll("(.*):(.*):(.*)$", "$1:$2:jar:$3"); line = line.replaceAll(" \\(n\\)$", ""); line = line.replaceAll(" \\(\\*\\)", "");