bottle: add: improve regexp to recognize comments
This would have eliminated the need for Homebrew/homebrew-core#9000, for instance.
This commit is contained in:
parent
a5019d281e
commit
42486c1181
@ -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