From 0c2468cd8bf01f7fbe142670edbfd2b4068f7396 Mon Sep 17 00:00:00 2001 From: Olga Lavtar Date: Fri, 14 Jun 2024 13:17:54 -0700 Subject: [PATCH] fix: fixes the version number discrepancy between manifest file and html report Signed-off-by: Olga Lavtar --- src/main/java/com/redhat/exhort/providers/GradleProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(" \\(\\*\\)", "");