diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/dsl.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/dsl.rb b/Library/Homebrew/cask/lib/hbc/dsl.rb index a1b3280e6..624d62a76 100644 --- a/Library/Homebrew/cask/lib/hbc/dsl.rb +++ b/Library/Homebrew/cask/lib/hbc/dsl.rb @@ -103,8 +103,7 @@ module Hbc if !args.empty? && block_given? args.each do |arg| MacOS.languages.each_with_index do |l, index| - string_or_regex = arg == :default ? %r{^en} : arg - next unless l.match(string_or_regex) + next unless arg == :default || l.match(arg) next unless @language.nil? || @language[:level].nil? || @language[:level] > index @language = { block: block, |
