Skip to content
Snippets Groups Projects
Commit 39473f76 authored by Xu Cheng's avatar Xu Cheng
Browse files

audit: fix FormulaText match


It's used in `audit_text`

Closes Homebrew/homebrew#37139.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 4c5a2eb7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment