Browse Source

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

BDisp 2 years ago
parent
commit
875074ff5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Windows/FileDialog.cs

+ 1 - 1
Terminal.Gui/Windows/FileDialog.cs

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