Skip to content

Commit

Permalink
fix(extension): remove exe suffix if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Nov 15, 2024
1 parent e45e7fa commit 17c3a1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/extension/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package extension
import (
"context"
"fmt"
"path/filepath"
"strings"

"github.com/fatih/color"
Expand Down Expand Up @@ -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)
}

0 comments on commit 17c3a1c

Please sign in to comment.