make erlang versions case-insensitive for bottles.

This commit is contained in:
Mike McQuaid 2013-06-03 20:52:21 +01:00
parent ee22ae3a56
commit eb7efb8dd5

View File

@ -127,7 +127,7 @@ class Version
return m.captures.first unless m.nil?
# e.g. https://github.com/erlang/otp/tarball/OTP_R15B01 (erlang style)
m = /[-_](R\d+[AB]\d*(?:-\d+)?)/.match(spec_s)
m = /[-_]([Rr]\d+[AaBb]\d*(?:-\d+)?)/.match(spec_s)
return m.captures.first unless m.nil?
# e.g. boost_1_39_0