Skip to content

Commit

Permalink
feat: case insensitive extension matching for icons & colors (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma authored Oct 1, 2022
1 parent 17e1a84 commit 01d3b69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion colors.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (sm styleMap) get(f *file) tcell.Style {
return val
}

if val, ok := sm["*"+f.ext]; ok {
if val, ok := sm["*"+strings.ToLower(f.ext)]; ok {
return val
}

Expand Down
2 changes: 1 addition & 1 deletion icons.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (im iconMap) get(f *file) string {
return val
}

if val, ok := im["*"+f.ext]; ok {
if val, ok := im["*"+strings.ToLower(f.ext)]; ok {
return val
}

Expand Down

0 comments on commit 01d3b69

Please sign in to comment.