From 9aeb8f0f0b131919b187f4835a057e4fa4afca82 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Tue, 2 May 2017 19:30:41 +0100 Subject: [PATCH] audit: match start of string, not line --- Library/Homebrew/dev-cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 9b0deb7d5e..1081fa0ba5 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -511,7 +511,7 @@ class FormulaAuditor reason.sub!(name, "") first_word = reason.split[0] - if reason =~ /^[A-Z]/ && !reason.start_with?(*whitelist) + if reason =~ /\A[A-Z]/ && !reason.start_with?(*whitelist) problem <<-EOS.undent '#{first_word}' from the keg_only reason should be '#{first_word.downcase}'. EOS