diff options
| author | Jack Nagel | 2013-07-22 22:53:11 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-07-22 22:53:11 -0500 |
| commit | 9456d8a4ee1415ef8054964d9b58cb8dc0e6047f (patch) | |
| tree | 45542dded2cf56aca6f473e3fedf0979d309ada1 /Library | |
| parent | f09b45f3b99ad6e934b3724868fc73dcd252046c (diff) | |
| download | homebrew-9456d8a4ee1415ef8054964d9b58cb8dc0e6047f.tar.bz2 | |
audit: fix broken condition
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index e0d2a8d00..08556a622 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, |
