audit: fix pypi strict audit capture group.

This commit is contained in:
Mike McQuaid 2017-06-03 20:25:12 +01:00
parent dd51a0f377
commit 3a08f81470

View File

@ -1501,7 +1501,7 @@ class ResourceAuditor
if @strict if @strict
urls.each do |p| urls.each do |p|
next unless p =~ %r{^https?://pypi.python.org/(.*)} next unless p =~ %r{^https?://pypi.python.org/(.*)}
problem "#{p} should be `https://files.pythonhosted.org/#{$2}`" problem "#{p} should be `https://files.pythonhosted.org/#{$1}`"
end end
end end