diff options
| author | Markus Reiter | 2016-09-21 08:49:04 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 15:30:06 +0200 |
| commit | 240e49052cf113b74c0b2940531d7b6a28ab83af (patch) | |
| tree | b0b44fa5e1bea2ac8d42b42bc67ba70d1334af95 /Library/Homebrew/dev-cmd/bottle.rb | |
| parent | 42efb44e7d942e9b96ec40f29e5c79e9f7b1e250 (diff) | |
| download | brew-240e49052cf113b74c0b2940531d7b6a28ab83af.tar.bz2 | |
Fix Performance/FixedSize.
Diffstat (limited to 'Library/Homebrew/dev-cmd/bottle.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/bottle.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index f4d6a463a..fe07526f3 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -436,7 +436,7 @@ module Homebrew puts output update_or_add = "add" if s.include? "stable do" - indent = s.slice(/^ +stable do/).length - "stable do".length + indent = s.slice(/^( +)stable do/, 1).length string = s.sub!(/^ {#{indent}}stable do(.|\n)+?^ {#{indent}}end\n/m, '\0' + output + "\n") else string = s.sub!( |
