From dc8d60d1165f969ab46af7cafeeaf58894a4ad58 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 4 Sep 2016 11:15:32 +0100 Subject: [PATCH] tap_constants: allow formulae to have @ in name. Follow-up from #812 to fix handling fully-qualified versioned formulae names. Allows pulling https://github.com/Homebrew/homebrew-core/pull/971. --- Library/Homebrew/tap_constants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/tap_constants.rb b/Library/Homebrew/tap_constants.rb index 6502b61d84..0697c94184 100644 --- a/Library/Homebrew/tap_constants.rb +++ b/Library/Homebrew/tap_constants.rb @@ -1,7 +1,7 @@ # match expressions when taps are given as ARGS, e.g. someuser/sometap HOMEBREW_TAP_ARGS_REGEX = %r{^([\w-]+)/(homebrew-)?([\w-]+)$} # match taps' formulae, e.g. someuser/sometap/someformula -HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$} +HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$} # match core's formulae, e.g. homebrew/homebrew/someformula HOMEBREW_CORE_FORMULA_REGEX = %r{^homebrew/homebrew/([\w+-.]+)$}i # match taps' directory paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap