Merge pull request #2200 from BDisp/dirlistview-fix

Fixes 2199. DirListView filter should not be case-sensitive
This commit is contained in:
Tig
2022-11-07 14:05:19 -07:00
committed by GitHub

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;
}