From b2dff27f0c8d0a4dc7190f657a4e516df86ae75e Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Wed, 6 Nov 2024 10:22:47 +1100 Subject: [PATCH] tap: allow an array of values for an audit exception --- Library/Homebrew/tap.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index ed67a2a066..74b9014f6f 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -1116,6 +1116,8 @@ class Tap return false unless list.include? formula_or_cask return list[formula_or_cask] if value.blank? + return list[formula_or_cask].include? value if list[formula_or_cask].is_a? Array + list[formula_or_cask] == value end end