aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilovezfs2018-01-24 07:01:20 -0800
committerilovezfs2018-01-28 08:12:12 -0800
commitccbe4945adbd9781433aaf688e457f4cd10cb6dc (patch)
tree16d911355fd57a764a73881ab5530aac83429c0b
parent98e48a9da7b0f1444d95f942fb3c1804cbc80991 (diff)
downloadbrew-ccbe4945adbd9781433aaf688e457f4cd10cb6dc.tar.bz2
bump-formula-pr: improve version formula component regex.
-rw-r--r--Library/Homebrew/dev-cmd/bump-formula-pr.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
index ca3f4cfe8..7da0f9321 100644
--- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb
+++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -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