aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-01-18 08:02:45 +0000
committerGitHub2017-01-18 08:02:45 +0000
commit9f183be3587ada8e99150fda96fd59cfc01f1bae (patch)
tree430cb357b833aa4ea7bea005e9e6b584a98e0fe0 /Library
parent950e27927b9bca7ad83df0b83f64beac61274046 (diff)
parentf0e5ebce06e8c2d7335fb3fbbc4314ee53c05e82 (diff)
downloadbrew-9f183be3587ada8e99150fda96fd59cfc01f1bae.tar.bz2
Merge pull request #1868 from zmwangx/bottle-add-improve-regexp
bottle: add: improve regexp to recognize comments
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/.rubocop_todo.yml2
-rw-r--r--Library/Homebrew/dev-cmd/bottle.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/.rubocop_todo.yml b/Library/Homebrew/.rubocop_todo.yml
index c1b2ba6e7..99080b546 100644
--- a/Library/Homebrew/.rubocop_todo.yml
+++ b/Library/Homebrew/.rubocop_todo.yml
@@ -66,7 +66,7 @@ Metrics/BlockNesting:
# Offense count: 19
# Configuration parameters: CountComments.
Metrics/ModuleLength:
- Max: 363
+ Max: 400
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
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
(