From 7a40f1bf0abe181499b4addcfd4d6a6041726a32 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Fri, 26 Feb 2021 19:41:04 +0000 Subject: [PATCH] os/mac: fix version error for prerelease macOS --- 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 0a95677a3b..d6253593bc 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -25,7 +25,7 @@ module OS # This can be compared to numerics, strings, or symbols # using the standard Ruby Comparable methods. def version - @version ||= Version.from_symbol(full_version.to_sym) + @version ||= full_version.strip_patch end # This can be compared to numerics, strings, or symbols