Merge pull request #11746 from samford/livecheck/sourceforge-do-not-modify-rss-urls
Sourceforge: Do not modify RSS URLs
This commit is contained in:
commit
e125e2b3ef
@ -68,7 +68,11 @@ module Homebrew
|
||||
def self.find_versions(url, regex, cask: nil, &block)
|
||||
match = url.match(URL_MATCH_REGEX)
|
||||
|
||||
page_url = "https://sourceforge.net/projects/#{match[:project_name]}/rss"
|
||||
page_url = if url.match?(%r{/rss(?:/?$|\?)})
|
||||
url
|
||||
else
|
||||
"https://sourceforge.net/projects/#{match[:project_name]}/rss"
|
||||
end
|
||||
|
||||
# It may be possible to improve the default regex but there's quite a
|
||||
# bit of variation between projects and it can be challenging to
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user