Skip to content

Commit

Permalink
fix: fixed the duplicates in gradle stack analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Lavtar <[email protected]>
  • Loading branch information
olavtar committed Apr 17, 2024
1 parent 5b1848f commit 5bb1f7d
Show file tree
Hide file tree
Showing 5 changed files with 735 additions and 3,424 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -254,6 +252,7 @@ private Sbom buildSbomFromTextFormat(Path textFormatFile, Map<String, String> pr
line = line.replaceAll(":(.*):(.*) -> (.*)$", ":$1:$3");
line = line.replaceAll("(.*):(.*):(.*)$", "$1:$2:jar:$3");
line = line.replaceAll(" \\(n\\)$", "");
line = line.replaceAll(" \\(\\*\\)", "");
line = line.replaceAll("$", ":compile");
array[index] = line;
}
Expand Down
Loading

0 comments on commit 5bb1f7d

Please sign in to comment.