PageMatch: Require provided_content to be a string
This commit is contained in:
parent
eedd108ace
commit
8b5e334be4
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user