Merge pull request #9081 from SeekingMeaning/bottle-block

bottle: fix adding bottle block to formulae with special license
This commit is contained in:
Mike McQuaid 2020-11-09 09:54:16 +00:00 committed by GitHub
commit 29160b9e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -536,7 +536,11 @@ module Homebrew
(\n^\ {3}[\S\ ]+$)* # options can be in multiple lines
)?|
(homepage|desc|sha256|version|mirror|license)\ ['"][\S\ ]+['"]| # specs with a string
(license)\ [^\[]+?\[[^\]]+?\]| # license may contain a list
license\ (
[^\[]+?\[[^\]]+?\]| # license may contain a list
[^{]+?{[^}]+?}| # license may contain a hash
:\S+ # license as a symbol
)|
(revision|version_scheme)\ \d+| # revision with a number
(stable|livecheck)\ do(\n+^\ {4}[\S\ ]+$)*\n+^\ {2}end # components with blocks
)\n+ # multiple empty lines