aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-11 14:37:44 -0700
committerAdam Vandenberg2012-03-11 14:37:44 -0700
commitf12ba4d75ca7522fa9e9d9f67e322cdd3c8eb33a (patch)
treece61f51f9f1f6b223c13087502ea4009bf339746 /Library/Homebrew/extend
parentddc2650183406d868336cc32d456a8a5ce06514d (diff)
downloadhomebrew-f12ba4d75ca7522fa9e9d9f67e322cdd3c8eb33a.tar.bz2
Allow multiple digits in GitHub version parts
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 34f692f28..6057c1437 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -154,21 +154,21 @@ class Pathname
end
# github tarballs, like v1.2.3
- %r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+)$].match to_s
+ %r[github.com/.*/(zip|tar)ball/v?((\d+\.)+\d+)$].match to_s
return $2 if $2
# eg. https://github.com/sam-github/libnet/tarball/libnet-1.1.4
- %r[github.com/.*/(zip|tar)ball/.*-((\d\.)+\d+)$].match to_s
+ %r[github.com/.*/(zip|tar)ball/.*-((\d+\.)+\d+)$].match to_s
return $2 if $2
# dashed version
# eg. github.com/isaacs/npm/tarball/v0.2.5-1
- %r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+-(\d+))$].match to_s
+ %r[github.com/.*/(zip|tar)ball/v?((\d+\.)+\d+-(\d+))$].match to_s
return $2 if $2
# underscore version
# eg. github.com/petdance/ack/tarball/1.93_02
- %r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+_(\d+))$].match to_s
+ %r[github.com/.*/(zip|tar)ball/v?((\d+\.)+\d+_(\d+))$].match to_s
return $2 if $2
# eg. boost_1_39_0