aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-21 22:13:01 +0200
committerMarkus Reiter2016-10-03 02:34:53 +0200
commit1e86c7d3ec8f7d1a82b01646fcc0f72d0f2c6ea8 (patch)
tree5b570fc886e64f8c3fdb23f7985535023092d2ef
parent87299af22547093a4efb9c4a5e06b55bb51f9ff7 (diff)
downloadbrew-1e86c7d3ec8f7d1a82b01646fcc0f72d0f2c6ea8.tar.bz2
Always fall back to `language :default`.
-rw-r--r--Library/Homebrew/cask/lib/hbc/dsl.rb3
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,