Improve PyPI package name audit wording

This commit is contained in:
Issy Long 2023-09-06 23:16:25 +01:00
parent 5d2ae98d0c
commit 94d4061589
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ module Homebrew
pypi_package_name = url.split("/").last.split(/-\d+\.\d+./).first.tr("_", "-")
return if name.casecmp(pypi_package_name).zero?
problem "resource name should be `#{pypi_package_name}` to closer match the PyPI package name"
problem "resource name should be `#{pypi_package_name}` to match the PyPI package name"
end
def audit_urls

View File

@ -539,7 +539,7 @@ module Homebrew
fa.audit_specs
expect(fa.problems.first[:message])
.to match("resource name should be `FooSomething` to closer match the PyPI package name")
.to match("resource name should be `FooSomething` to match the PyPI package name")
end
end