diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 2ab655df4d..a568be6b72 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -69,6 +69,14 @@ class FormulaText def has_trailing_newline? /\Z\n/ =~ @text end + + def =~ regex + regex =~ @text + end + + def !~ regex + regex !~ @text + end end class FormulaAuditor