From dd9b317e245670ac06610e4f69bbba98e224b851 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 22 Jul 2013 22:53:11 -0500 Subject: [PATCH] audit: fix broken condition --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index e0d2a8d009..08556a6221 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -553,7 +553,7 @@ class FormulaAuditor end # Checks that apply only to code in def caveats - if text =~ /(\s*)def\s+caveats((.*\n)*?)(\1end)/ || /(\s*)def\s+caveats;(.*?)end/ + if text =~ /(\s*)def\s+caveats((.*\n)*?)(\1end)/ || text =~ /(\s*)def\s+caveats;(.*?)end/ caveats_body = $2 if caveats_body =~ /[ \{=](python[23]?)\.(.*\w)/ # So if in the body of caveats there is a `python.whatever` called,