Fix regression in detecting macOS/osx platform introduced by bdb0a39c8a

This commit is contained in:
Norman Maurer 2017-08-08 10:39:22 +02:00
parent f8b495b2f2
commit e218759c0c

View File

@ -933,7 +933,9 @@ public final class PlatformDependent {
} }
private static boolean isOsx0() { private static boolean isOsx0() {
String osname = SystemPropertyUtil.get("os.name", "").toLowerCase(Locale.US); String osname = SystemPropertyUtil.get("os.name", "").toLowerCase(Locale.US)
.replaceAll("[^a-z0-9]+", "");
System.err.println("osname=" + osname);
boolean osx = osname.startsWith("macosx") || osname.startsWith("osx"); boolean osx = osname.startsWith("macosx") || osname.startsWith("osx");
if (osx) { if (osx) {