Merge pull request #20154 from abitrolly/brew-audit-v-version

create: strip 'v' prefix from version
This commit is contained in:
Mike McQuaid 2025-06-23 07:30:03 +00:00 committed by GitHub
commit a6b1d42488
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,7 +165,7 @@ module Homebrew
<% unless @head %>
url "#{@url}"
<% unless @version.detected_from_url? %>
version "#{@version}"
version "#{@version.to_s.delete_prefix("v")}"
<% end %>
sha256 "#{@sha256}"
<% end %>