Fix regression in detecting macOS/osx platform introduced by bdb0a39c8a
This commit is contained in:
parent
fb8e2dfc69
commit
b6b8b9f282
@ -679,7 +679,9 @@ public final class PlatformDependent {
|
||||
}
|
||||
|
||||
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");
|
||||
|
||||
if (osx) {
|
||||
|
Loading…
Reference in New Issue
Block a user