Skip to content
Snippets Groups Projects
Commit 0caa1912 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

Move "path or URL" tap string to global constant.

parent 7004d3de
No related branches found
No related tags found
No related merge requests found
......@@ -540,7 +540,7 @@ class Formula
elsif core_formula?
"Homebrew/homebrew"
else
"path or URL"
HOMEBREW_PATH_URL_TAP
end
end
......
......@@ -8,3 +8,5 @@ HOMEBREW_TAP_DIR_REGEX = %r{#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Taps/([\w-]+
HOMEBREW_TAP_PATH_REGEX = Regexp.new(HOMEBREW_TAP_DIR_REGEX.source + %r{/(.*)}.source)
# match the default brew-cask tap e.g. Caskroom/cask
HOMEBREW_CASK_TAP_FORMULA_REGEX = %r{^(Caskroom)/(cask)/([\w+-.]+)$}
# the tap name used for formulae installed from paths or URLs
HOMEBREW_PATH_URL_TAP = "path or URL"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment