Clarify .exe suffix handling in class normalization

This commit is contained in:
2026-06-02 12:21:12 -04:00
parent 4ea8aed04b
commit f79c149039
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -12,6 +12,7 @@ func TestClassFromImagePath(t *testing.T) {
{`C:/forward/slash/Code.exe`, "code"},
{`firefox`, "firefox"},
{``, ""},
{`.exe`, ""}, // degenerate: only the extension
}
for _, c := range cases {
if got := ClassFromImagePath(c.in); got != c.want {