fix version parser for upcoming erlang bottle

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Jan Lehnardt 2011-08-30 15:58:27 +02:00 committed by Mike McQuaid
parent 2e0a2cb175
commit 27fd2d7a70

View File

@ -174,6 +174,11 @@ class Pathname
return match.first if /\d/.match $1 return match.first if /\d/.match $1
end end
# erlang bottle style, booya
# e.g. erlang-R14B03-bottle.tar.gz
/-([^-]+)-bottle$/.match stem
return $1 if $1
nil nil
end end