diff options
| author | ilovezfs | 2018-01-24 07:01:20 -0800 | 
|---|---|---|
| committer | ilovezfs | 2018-01-28 08:12:12 -0800 | 
| commit | ccbe4945adbd9781433aaf688e457f4cd10cb6dc (patch) | |
| tree | 16d911355fd57a764a73881ab5530aac83429c0b | |
| parent | 98e48a9da7b0f1444d95f942fb3c1804cbc80991 (diff) | |
| download | brew-ccbe4945adbd9781433aaf688e457f4cd10cb6dc.tar.bz2 | |
bump-formula-pr: improve version formula component regex.
| -rw-r--r-- | Library/Homebrew/dev-cmd/bump-formula-pr.rb | 2 | 
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 | 
