aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-16 06:47:13 -0700
committerAdam Vandenberg2011-06-16 06:47:13 -0700
commitea81950776ca02754b13123251da06cb6752fdee (patch)
treeb030749bbba0039fecc4d9d8d18708a5d5c6d666 /Library/Homebrew/extend
parent959f6b31acc2b85f00fa326cf5044b8b5ca0d56c (diff)
downloadhomebrew-ea81950776ca02754b13123251da06cb6752fdee.tar.bz2
Allow underscore with these suffixes for version detection
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 8398bb17d..54435aa37 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -157,7 +157,7 @@ class Pathname
return $1 if $1
# eg foobar-4.5.0-bin
- /-((\d+\.)+\d+[abc]?)[-.](bin|stable|src|sources?)$/.match stem
+ /-((\d+\.)+\d+[abc]?)[-._](bin|stable|src|sources?)$/.match stem
return $1 if $1
# Debian style eg dash_0.5.5.1.orig.tar.gz