diff --git a/lib/bundle/dsl.rb b/lib/bundle/dsl.rb index 5742c36ba..e21f2df2f 100644 --- a/lib/bundle/dsl.rb +++ b/lib/bundle/dsl.rb @@ -91,9 +91,9 @@ def tap(name, clone_target = nil, options = {}) @entries << Entry.new(:tap, name, options) end - HOMEBREW_TAP_ARGS_REGEX = %r{^([\w-]+)/(homebrew-)?([\w-]+)$}.freeze - HOMEBREW_CORE_FORMULA_REGEX = %r{^homebrew/homebrew/([\w+-.@]+)$}i.freeze - HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$}.freeze + HOMEBREW_TAP_ARGS_REGEX = %r{^([\w-]+)/(homebrew-)?([\w-]+)$} + HOMEBREW_CORE_FORMULA_REGEX = %r{^homebrew/homebrew/([\w+-.@]+)$}i + HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$} def self.sanitize_brew_name(name) name = name.downcase