tap: allow an array of values for an audit exception

This commit is contained in:
Bevan Kay 2024-11-06 10:22:47 +11:00
parent c66b91d952
commit b2dff27f0c
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

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