aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 2ab655df4..a568be6b7 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