mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #20154 from abitrolly/brew-audit-v-version
create: strip 'v' prefix from version
This commit is contained in:
commit
a6b1d42488
@ -165,7 +165,7 @@ module Homebrew
|
|||||||
<% unless @head %>
|
<% unless @head %>
|
||||||
url "#{@url}"
|
url "#{@url}"
|
||||||
<% unless @version.detected_from_url? %>
|
<% unless @version.detected_from_url? %>
|
||||||
version "#{@version}"
|
version "#{@version.to_s.delete_prefix("v")}"
|
||||||
<% end %>
|
<% end %>
|
||||||
sha256 "#{@sha256}"
|
sha256 "#{@sha256}"
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user