From 8b5e334be48f0589a5d0c1fc376e161ff73ea49e Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Thu, 24 Dec 2020 21:49:30 -0500 Subject: [PATCH] PageMatch: Require provided_content to be a string --- Library/Homebrew/livecheck/strategy/page_match.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/livecheck/strategy/page_match.rb b/Library/Homebrew/livecheck/strategy/page_match.rb index 7022be6739..344abae816 100644 --- a/Library/Homebrew/livecheck/strategy/page_match.rb +++ b/Library/Homebrew/livecheck/strategy/page_match.rb @@ -88,7 +88,7 @@ module Homebrew def self.find_versions(url, regex, provided_content = nil, &block) match_data = { matches: {}, regex: regex, url: url } - content = if provided_content.present? + content = if provided_content.is_a?(String) provided_content else match_data.merge!(Strategy.page_content(url))