feat: case insensitive extension matching for icons & colors (#908)

This commit is contained in:
desbma 2022-10-01 15:27:14 +02:00 committed by GitHub
parent 17e1a84646
commit 01d3b69de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}