mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-31 02:08:03 +01:00
Merge pull request #2200 from BDisp/dirlistview-fix
Fixes 2199. DirListView filter should not be case-sensitive
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user