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
commit7d61bfe88f7a6e396eb3addddf0c06e62c5c2175 (patch)
treeb85f15d1587ac862647fef9523e35fe1f233179d /Library/Homebrew/version.rb
parent5ce1caa1f3679244ed120e3f091001c5afabcf74 (diff)
downloadbrew-7d61bfe88f7a6e396eb3addddf0c06e62c5c2175.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