mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 15:36:59 +00:00
bump-formula-pr: improve version formula component regex.
This commit is contained in:
@@ -267,7 +267,7 @@ module Homebrew
|
||||
end
|
||||
elsif forced_version && forced_version == "0"
|
||||
if requested_spec == :stable
|
||||
replacement_pairs << [/^ version \"[a-z\d+\.]+\"\n/m, ""]
|
||||
replacement_pairs << [/^ version \"[\w\.\-\+]+\"\n/m, ""]
|
||||
elsif requested_spec == :devel
|
||||
replacement_pairs << [/( devel do.+?)^ +version \"[^\n]+\"\n(.+?end\n)/m, "\\1\\2"]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user