aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 7c2a0bd67..2f23af7e5 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -174,6 +174,11 @@ class Pathname
return match.first if /\d/.match $1
end
+ # erlang bottle style, booya
+ # e.g. erlang-R14B03-bottle.tar.gz
+ /-([^-]+)-bottle$/.match stem
+ return $1 if $1
+
nil
end