Merge pull request #1868 from zmwangx/bottle-add-improve-regexp
bottle: add: improve regexp to recognize comments
This commit is contained in:
commit
9f183be358
@ -66,7 +66,7 @@ Metrics/BlockNesting:
|
||||
# Offense count: 19
|
||||
# Configuration parameters: CountComments.
|
||||
Metrics/ModuleLength:
|
||||
Max: 363
|
||||
Max: 400
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: CountKeywordArgs.
|
||||
|
||||
@ -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
|
||||
(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user