bottle: fix regex

Noted that this is intended for the revision of this formula instead of
rebuild of a bottle.
This commit is contained in:
Xu Cheng 2017-01-22 19:50:14 +08:00
parent 7c27bfd37a
commit 22f294af90
No known key found for this signature in database
GPG Key ID: C2A3860FA0B459CE

View File

@ -443,7 +443,7 @@ module Homebrew
(\n^\ {3}[\S\ ]+$)* # options can be in multiple lines
)?|
(homepage|desc|sha1|sha256|version|mirror)\ ['"][\S\ ]+['"]| # specs with a string
rebuild\ \d+ # rebuild with a number
revision\ \d+ # revision with a number
)\n+ # multiple empty lines
)+
/mx, '\0' + output + "\n"