Merge pull request #16676 from abitrolly/create-github-parsing

formula_creator: Fix GitHub parsing when name doesn't match URL
This commit is contained in:
Mike McQuaid 2024-02-16 08:43:42 +00:00 committed by GitHub
commit 645cf35ae1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,10 +56,8 @@ module Homebrew
when %r{github\.com/(\S+)/(\S+)\.git}
@user = Regexp.last_match(1)
@head = true
@github = true
when %r{github\.com/(\S+)/(\S+)/(archive|releases)/}
@user = Regexp.last_match(1)
@github = true
end
end