From 01d3b69de0d78e02d1ab43071d04292cac06b20f Mon Sep 17 00:00:00 2001 From: desbma Date: Sat, 1 Oct 2022 15:27:14 +0200 Subject: [PATCH] feat: case insensitive extension matching for icons & colors (#908) --- colors.go | 2 +- icons.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/colors.go b/colors.go index 949a98e..d8a69ff 100644 --- a/colors.go +++ b/colors.go @@ -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 } diff --git a/icons.go b/icons.go index 3b56293..347645f 100644 --- a/icons.go +++ b/icons.go @@ -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 }