fix: compare lower case strings in contains function

this fixes file completion on windows.
readline-lua-module
sammyette 2023-09-09 13:53:02 -04:00
parent caff604d95
commit db8e87e5dd
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ func removeDupes(slice []string) []string {
func contains(s []string, e string) bool { func contains(s []string, e string) bool {
for _, a := range s { for _, a := range s {
if a == e { if strings.ToLower(a) == strings.ToLower(e) {
return true return true
} }
} }