This commit is contained in:
Stephane Nicoll
2018-02-27 10:54:43 +01:00
parent b4c901cab6
commit 569bad16da

View File

@@ -151,7 +151,7 @@ public abstract class AnsiOutput {
if ((consoleAvailable == null) && (System.console() == null)) {
return false;
}
return !(OPERATING_SYSTEM_NAME.indexOf("win") >= 0);
return !(OPERATING_SYSTEM_NAME.contains("win"));
}
catch (Throwable ex) {
return false;