Removing the "fancy" regex builder for OS X as well. #46

This commit is contained in:
Rob Greene 2020-11-16 12:21:03 -06:00
parent 8c7bfb1ad4
commit f46e4edce0
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ public class SwtAppleCommander implements Listener {
* {@code *.[dD][sS][kK]}.
*/
protected String makeExtensionCaseInsensitive(String extension) {
if (Host.isWindows()) {
if (Host.isWindows() || Host.isMacosx()) {
// Windows SWT does not support the regex and is case insensitive. Leave it as-is!
return extension;
}