Skip to content

Commit 5bda42a

Browse files
Merge pull request #228 from ibuildthecloud/underscore
bug: don't end tool name with _, it tends to confuse the robots
2 parents fe0055c + 79002e0 commit 5bda42a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/types/toolname.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ func ToolNormalizer(tool string) string {
2626
}
2727

2828
name := invalidChars.ReplaceAllString(tool, "_")
29+
for strings.HasSuffix(name, "_") {
30+
name = strings.TrimSuffix(name, "_")
31+
}
32+
2933
if len(name) > 55 {
3034
name = name[:55]
3135
}

0 commit comments

Comments
 (0)