diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb index 1698c44a4d..d969f298c0 100644 --- a/Library/Homebrew/version.rb +++ b/Library/Homebrew/version.rb @@ -276,7 +276,7 @@ class Version return m.captures.first unless m.nil? # e.g. http://www.openssl.org/source/openssl-0.9.8s.tar.gz - m = /-([^-]+)/.match(stem) + m = /-v?([^-]+)/.match(stem) return m.captures.first unless m.nil? # e.g. astyle_1.23_macosx.tar.gz