diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java index c6c8af1fd..6508ddcbf 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -1448,7 +1448,7 @@ public class SystemUtils { if (osName == null || osVersion == null) { return false; } - return osName.startsWith(osNamePrefix) && osVersion.startsWith(osVersionPrefix); + return isOSNameMatch(osName, osNamePrefix) && osVersion.startsWith(osVersionPrefix); } /**