Skip to content

Commit

Permalink
fix: git::https:/
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Nov 14, 2024
1 parent 4ed1bef commit 5abb1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/report/sarif.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func clearURI(s string) string {
s = strings.ReplaceAll(s, "[email protected]:", "github.com/")
s = strings.ReplaceAll(s, ".git", "")
s = strings.ReplaceAll(s, "?ref=", "/tree/")
case strings.HasPrefix(s, "git::https:/"):
case strings.HasPrefix(s, "git::https:/") && !strings.HasPrefix(s, "git::https://"):
s = strings.TrimPrefix(s, "git::https:/")
s = strings.ReplaceAll(s, ".git", "")
case strings.HasPrefix(s, "git::ssh://"):
Expand Down

0 comments on commit 5abb1ca

Please sign in to comment.