From 0c44ce2a38d42876d02275b4db719930860beb03 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 3eb3197478..12de02f492 100644 --- a/Library/Homebrew/tap_constants.rb +++ b/Library/Homebrew/tap_constants.rb @@ -1,5 +1,5 @@ # 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 taps' directory paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap HOMEBREW_TAP_DIR_REGEX = %r{#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Taps/([\w-]+)/([\w-]+)} # match taps' formula paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap/someformula