[rubygems/rubygems] Missing tweak

https://github.com/rubygems/rubygems/commit/407c1cbcfe
This commit is contained in:
David Rodríguez 2025-05-08 14:33:37 +02:00 committed by Hiroshi SHIBATA
parent 4be199e435
commit aea603615f

View File

@ -126,7 +126,7 @@ class Gem::Platform
when /solaris-?(\d+\.\d+)?/ then ["solaris", $1]
when /wasi/ then ["wasi", nil]
# test
when /^(\w+_platform)(\d+)?/ then [$1, $2]
when /^(\w+_platform)-?(\d+)?/ then [$1, $2]
else ["unknown", nil]
end
when Gem::Platform then