diff --git a/pkg/analyze/util.go b/pkg/analyze/util.go index 0d57c33..9d7fb4e 100644 --- a/pkg/analyze/util.go +++ b/pkg/analyze/util.go @@ -79,5 +79,9 @@ func TruncateURLPath(input string) string { return input } parts := strings.Split(input, "/") + if parts[len(parts)-1] == "" { + count-- + parts[count] += "/" + } return fmt.Sprintf("/%s/.../%s", parts[1], parts[count]) }