aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index d705bc2f9..caf081f60 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -213,8 +213,10 @@ class Pathname
return $1 if $1
# eg. foobar4.5.1
- /((\d+\.)*\d+)$/.match stem
- return $1 if $1
+ unless /^erlang-/.match basename
+ /((\d+\.)*\d+)$/.match stem
+ return $1 if $1
+ end
# eg foobar-4.5.0-bin
/-((\d+\.)+\d+[abc]?)[-._](bin|dist|stable|src|sources?)$/.match stem