Merge pull request #9081 from SeekingMeaning/bottle-block
bottle: fix adding bottle block to formulae with special license
This commit is contained in:
commit
29160b9e7f
@ -536,7 +536,11 @@ module Homebrew
|
|||||||
(\n^\ {3}[\S\ ]+$)* # options can be in multiple lines
|
(\n^\ {3}[\S\ ]+$)* # options can be in multiple lines
|
||||||
)?|
|
)?|
|
||||||
(homepage|desc|sha256|version|mirror|license)\ ['"][\S\ ]+['"]| # specs with a string
|
(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
|
(revision|version_scheme)\ \d+| # revision with a number
|
||||||
(stable|livecheck)\ do(\n+^\ {4}[\S\ ]+$)*\n+^\ {2}end # components with blocks
|
(stable|livecheck)\ do(\n+^\ {4}[\S\ ]+$)*\n+^\ {2}end # components with blocks
|
||||||
)\n+ # multiple empty lines
|
)\n+ # multiple empty lines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user