mirror of https://github.com/Hilbis/Hilbish
fix: compare lower case strings in contains function
this fixes file completion on windows.readline-lua-module
parent
caff604d95
commit
db8e87e5dd
2
main.go
2
main.go
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue