From db8e87e5dd101a879da183030402feaf92d2994e Mon Sep 17 00:00:00 2001 From: sammyette Date: Sat, 9 Sep 2023 13:53:02 -0400 Subject: [PATCH] fix: compare lower case strings in contains function this fixes file completion on windows. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 300f333..b75752e 100644 --- a/main.go +++ b/main.go @@ -289,7 +289,7 @@ func removeDupes(slice []string) []string { func contains(s []string, e string) bool { for _, a := range s { - if a == e { + if strings.ToLower(a) == strings.ToLower(e) { return true } }