Skip to content

Commit

Permalink
Merge pull request #8838 from dtrodrigues/pypi-livecheck-fix
Browse files Browse the repository at this point in the history
livecheck/pypi: minor edit to PyPI post version
  • Loading branch information
dtrodrigues authored Oct 3, 2020
2 parents 318a504 + 16d4f51 commit 2d5ba77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/livecheck/strategy/pypi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def self.find_versions(url, regex = nil)
# Example regex: `%r{href=.*?/packages.*?/example[._-]v?(\d+(?:\.\d+)*).t}i`.
regex ||=
%r{href=.*?/packages.*?/#{Regexp.escape(package_name)}[._-]
v?(\d+(?:\.\d+)*(.post\d)?)#{Regexp.escape(suffix)}}ix
v?(\d+(?:\.\d+)*(.post\d+)?)#{Regexp.escape(suffix)}}ix

Homebrew::Livecheck::Strategy::PageMatch.find_versions(page_url, regex)
end
Expand Down

0 comments on commit 2d5ba77

Please sign in to comment.