aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorZhiming Wang2017-01-17 10:16:35 -0500
committerZhiming Wang2017-01-17 10:26:01 -0500
commit42486c1181bdf4ed85f334ccb1edbb6632cfc4b2 (patch)
treeefa2ceb1fe840a913b8cb4205faea73415102aca /Library
parenta5019d281ef0757adcc0f4157e7f15495da01cdf (diff)
downloadbrew-42486c1181bdf4ed85f334ccb1edbb6632cfc4b2.tar.bz2
bottle: add: improve regexp to recognize comments
This would have eliminated the need for Homebrew/homebrew-core#9000, for instance.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/bottle.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb
index 9618cf412..75078cffd 100644
--- a/Library/Homebrew/dev-cmd/bottle.rb
+++ b/Library/Homebrew/dev-cmd/bottle.rb
@@ -435,6 +435,7 @@ module Homebrew
else
string = s.sub!(
/(
+ (\ {2}\#[^\n]*\n)* # comments
\ {2}( # two spaces at the beginning
(url|head)\ ['"][\S\ ]+['"] # url or head with a string
(