Fix regression in detecting macOS/osx platform introduced by bdb0a39c8a
This commit is contained in:
parent
f8b495b2f2
commit
e218759c0c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user