From 1e86c7d3ec8f7d1a82b01646fcc0f72d0f2c6ea8 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 21 Sep 2016 22:13:01 +0200 Subject: Always fall back to `language :default`. --- Library/Homebrew/cask/lib/hbc/dsl.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Library') 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, -- cgit v1.2.3