Skip to content

Commit

Permalink
[rubygems/rubygems] Test platform's version-ness consistently
Browse files Browse the repository at this point in the history
The symmetry with the "for command line" case is made more apparent.

rubygems/rubygems@ab85d3558f
  • Loading branch information
lloeki authored and matzbot committed Aug 22, 2022
1 parent 085790b commit 615f79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/platform.rb
Expand Up @@ -70,7 +70,7 @@ def initialize(arch)
when String then
arch = arch.split "-"

if arch.length > 2 && arch.last !~ (/\d/) # reassemble x86-linux-gnu
if arch.length > 2 && arch.last !~ /\d+(\.\d+)?$/ # reassemble x86-linux-{libc}
extra = arch.pop
arch.last << "-#{extra}"
end
Expand Down

0 comments on commit 615f79b

Please sign in to comment.