Skip to content

Commit

Permalink
more trim
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Mar 2, 2024
1 parent 7bed5f4 commit f572ec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/dl-stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f572ec0

Please sign in to comment.