diff --git a/app/extension/extension.go b/app/extension/extension.go index e8b752e..28f067b 100644 --- a/app/extension/extension.go +++ b/app/extension/extension.go @@ -3,6 +3,7 @@ package extension import ( "context" "fmt" + "path/filepath" "strings" "github.com/fatih/color" @@ -155,5 +156,6 @@ func normalizeExtName(n string) string { if !strings.HasPrefix(n, extensions.Prefix) { n = extensions.Prefix + n } + n = strings.TrimSuffix(n, filepath.Ext(n)) return color.New(color.Bold, color.FgCyan).Sprint(n) }