From f572ec01bdd7ee49d5c9675779de5563779197c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BCbner?= Date: Sat, 2 Mar 2024 02:16:10 +0100 Subject: [PATCH] more trim --- tools/dl-stats.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/dl-stats.go b/tools/dl-stats.go index f73e7fc..74d6692 100755 --- a/tools/dl-stats.go +++ b/tools/dl-stats.go @@ -48,7 +48,8 @@ func main() { fmt.Printf("%v:\n", release.Tag) combined := 0 for _, asset := range release.Assets { - trimmed := strings.TrimPrefix(asset.Name, "mrpack-install-") + trimmed := strings.TrimPrefix(asset.Name, "mrpack-install_") + trimmed = strings.TrimPrefix(trimmed, strings.TrimPrefix(release.Tag, "v")+"_") trimmed = strings.TrimSuffix(trimmed, ".exe") fmt.Printf(" - %v: %v\n", trimmed, asset.DownloadCount) combined = combined + asset.DownloadCount