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

super/cc: loosen cellar formula regex.

Match HOMEBREW_TAP_FORMULA_REGEX to avoid skipping valid cellar regexes.
parent 9cd5a21b
No related branches found
Tags 1.1.5
No related merge requests found
......@@ -31,7 +31,7 @@ class Cmd
@deps = Set.new(ENV.fetch("HOMEBREW_DEPENDENCIES") { "" }.split(","))
@formula_prefix = ENV["HOMEBREW_FORMULA_PREFIX"]
# matches opt or cellar prefix and formula name
@keg_regex = %r[(#{Regexp.escape(opt)}|#{Regexp.escape(cellar)})/([\w\-_\+]+)]
@keg_regex = %r[(#{Regexp.escape(opt)}|#{Regexp.escape(cellar)})/([\w+-.@]+)]
end
def mode
......
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