From 79002e0cabf746260a953d28fb758cd87614319e Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Tue, 9 Apr 2024 21:38:10 -0700 Subject: [PATCH] bug: don't end tool name with _, it tends to confuse the robots --- pkg/types/toolname.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/types/toolname.go b/pkg/types/toolname.go index 8f46dd19..e1e44a55 100644 --- a/pkg/types/toolname.go +++ b/pkg/types/toolname.go @@ -26,6 +26,10 @@ func ToolNormalizer(tool string) string { } name := invalidChars.ReplaceAllString(tool, "_") + for strings.HasSuffix(name, "_") { + name = strings.TrimSuffix(name, "_") + } + if len(name) > 55 { name = name[:55] }