Skip to content

Commit

Permalink
Updated regex to match exactly 10, and 10.x (#1078)
Browse files Browse the repository at this point in the history
Signed-off-by: kanad-progress <[email protected]>
  • Loading branch information
kanad-progress authored Sep 5, 2022
1 parent ec19442 commit ad91fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omnibus/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def truncate_platform_version(platform_version, platform)
# version is the same as Windows 2012R2. It's only here for completeness
# and documentation.
when /6\.3\.\d+/, "8.1" then "8.1"
when /^10\.0/ then "10"
when "10", /^10\.0/ then "10"
else
raise UnknownPlatformVersion.new(platform, platform_version)
end
Expand Down

0 comments on commit ad91fe7

Please sign in to comment.