From 16d4f51a8480d1cb7f25400676ff3582c40496b2 Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Fri, 2 Oct 2020 22:01:35 -0400 Subject: [PATCH] livecheck/pypi: minor edit to PyPI post version --- Library/Homebrew/livecheck/strategy/pypi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/livecheck/strategy/pypi.rb b/Library/Homebrew/livecheck/strategy/pypi.rb index 02870a0cce0db..4c10516effe51 100644 --- a/Library/Homebrew/livecheck/strategy/pypi.rb +++ b/Library/Homebrew/livecheck/strategy/pypi.rb @@ -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