Merge pull request #18717 from bevanjkay/audit-exceptions

tap: allow an array of values for an audit exception
This commit is contained in:
Mike McQuaid 2024-11-06 09:21:21 +00:00 committed by GitHub
commit 3ff3ad6f6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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