Fixes 2199. DirListView filter is case sensitive and it mustn't.

This commit is contained in:
BDisp
2022-11-07 16:24:52 +00:00
parent 39463146c5
commit 875074ff5d

View File

@@ -41,7 +41,7 @@ namespace Terminal.Gui {
if (allowedFileTypes == null)
return true;
foreach (var ft in allowedFileTypes)
if (fsi.Name.EndsWith (ft) || ft == ".*")
if (fsi.Name.EndsWith (ft, StringComparison.InvariantCultureIgnoreCase) || ft == ".*")
return true;
return false;
}