Merge pull request #10717 from Bo98/prerelease

os/mac: fix version error for prerelease macOS
This commit is contained in:
Bo Anderson 2021-03-02 03:11:41 +00:00 committed by GitHub
commit 10c8874ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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