aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/version.rb
diff options
context:
space:
mode:
authorMike McQuaid2012-12-15 19:06:03 +0000
committerMike McQuaid2012-12-16 14:35:41 +0000
commite4b5b88bd978df17f5dd79da675a8896647d273f (patch)
treec43646d03ff7e505158582229ba147e6414dca3f /Library/Homebrew/version.rb
parent4085c0b476fdf10b33fe368eb263b74e4ff57b43 (diff)
downloadhomebrew-e4b5b88bd978df17f5dd79da675a8896647d273f.tar.bz2
Add another Erlang version format.
Diffstat (limited to 'Library/Homebrew/version.rb')
-rw-r--r--Library/Homebrew/version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb
index be1ee63c2..75233c16c 100644
--- a/Library/Homebrew/version.rb
+++ b/Library/Homebrew/version.rb
@@ -128,7 +128,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*)/.match(spec.to_s)
+ m = /[-_](R\d+[AB]\d*(-\d+)?)/.match(spec.to_s)
return m.captures.first unless m.nil?
# e.g. boost_1_39_0