2
0
Эх сурвалжийг харах

Merge pull request #2200 from BDisp/dirlistview-fix

Fixes 2199. DirListView filter should not be case-sensitive
Tig 2 жил өмнө
parent
commit
0d4f1d440e

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