diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 605c3f4ac3a871d8229ab230c319711e4acab628..6d81b4507a37c7b0f9e08933328ba21cc8616912 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -794,7 +794,7 @@ module Homebrew begin if @online && (release = GitHub.open_api("#{GitHub::API_URL}/repos/#{owner}/#{repo}/releases/tags/#{tag}")) - if release["prerelease"] && !GITHUB_PRERELEASE_ALLOWLIST.include?(formula.name) + if release["prerelease"] && (GITHUB_PRERELEASE_ALLOWLIST[formula.name] != formula.version) problem "#{tag} is a GitHub prerelease" elsif release["draft"] problem "#{tag} is a GitHub draft"