aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorDominyk Tiller2017-05-02 19:30:41 +0100
committerDominyk Tiller2017-05-02 19:30:41 +0100
commit9aeb8f0f0b131919b187f4835a057e4fa4afca82 (patch)
tree3248fe8b4590d3922d36c1151be2a429319f17b9 /Library/Homebrew/dev-cmd
parent80483c0206b482cc10756cd73aa0b058d2329393 (diff)
downloadbrew-9aeb8f0f0b131919b187f4835a057e4fa4afca82.tar.bz2
audit: match start of string, not line
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 9b0deb7d5..1081fa0ba 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