Too much find and replace

Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
Issy Long 2024-08-12 08:29:20 +01:00 committed by GitHub
parent 621ddc60d1
commit 7047edcbdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -776,8 +776,8 @@ module Homebrew
problem "#{stable.version} is a development release"
when %r{https?://gitlab\.com/([\w-]+)/([\w-]+)}
owner = T.must(T.must(Regexp.last_match(1)))
repo = T.must(T.must(Regexp.last_match(2)))
owner = T.must(Regexp.last_match(1))
repo = T.must(Regexp.last_match(2))
tag = SharedAudits.gitlab_tag_from_url(url)
tag ||= stable.specs[:tag]