From 57e541f04059329195c99edb031ffb519d68ed55 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 23 Oct 2013 12:59:42 +0100 Subject: [PATCH] global: further limit tap formula regex. --- Library/Homebrew/global.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index caa6ccb37f..61625b6ae6 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -83,7 +83,7 @@ HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY HOMEBREW_CURL_ARGS = '-f#LA' -HOMEBREW_TAP_FORMULA_REGEX = %r{(\w+)/(\w+)/([^/]+)} +HOMEBREW_TAP_FORMULA_REGEX = %r{^(\w+)/(\w+)/([^/]+)$} module Homebrew extend self include FileUtils