Skip to content

Commit

Permalink
Merge pull request #1287 from issyl0/rubocop-fixes
Browse files Browse the repository at this point in the history
Fix RuboCop `Style/RedundantFreeze` offenses
  • Loading branch information
issyl0 authored Jan 19, 2024
2 parents 09ae450 + d42f7ef commit d44243f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bundle/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d44243f

Please sign in to comment.