diff options
Diffstat (limited to 'Library/Homebrew/bottles.rb')
| -rw-r--r-- | Library/Homebrew/bottles.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 5b0073d3b..2686f2468 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -63,12 +63,12 @@ end class Bintray def self.package(formula_name) - formula_name.to_s.gsub "+", "x" + formula_name.to_s.tr("+", "x") end def self.repository(tap = nil) return "bottles" if tap.nil? || tap == "Homebrew/homebrew" - "bottles-#{tap.sub(/^homebrew\/(homebrew-)?/i, "")}" + "bottles-#{tap.sub(%r{^homebrew/(homebrew-)?}i, "")}" end end |
