Skip to content
Snippets Groups Projects
Unverified Commit 42486c11 authored by Zhiming Wang's avatar Zhiming Wang
Browse files

bottle: add: improve regexp to recognize comments

This would have eliminated the need for Homebrew/homebrew-core#9000, for
instance.
parent a5019d28
No related branches found
No related tags found
No related merge requests found
......@@ -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
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment