From fbf56e27a02e37b017654a2065d06211e030df0f Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Tue, 23 Jun 2020 16:51:16 +0100 Subject: [PATCH] os/mac: fix for major versions other than 10 --- Library/Homebrew/os/mac.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index 654f2d5c04..f559bfacf9 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -21,7 +21,7 @@ module OS # This can be compared to numerics, strings, or symbols # using the standard Ruby Comparable methods. def version - @version ||= Version.new(full_version.to_s[/10\.\d+/]) + @version ||= Version.new(full_version.to_s[/^\d+\.\d+/]) end # This can be compared to numerics, strings, or symbols