aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorGeoff Nixon2014-03-06 00:04:30 -0800
committerJack Nagel2014-03-19 18:24:08 -0500
commit9bbe38aa595d833caf80e6e901932f9e9ea5ab27 (patch)
treeae78ad726ea8f919cd5fba7105f33c2e4115cb4d /Library
parent7f33a84ce6e006ef50fd308ee0e2a145a8b481d5 (diff)
downloadbrew-9bbe38aa595d833caf80e6e901932f9e9ea5ab27.tar.bz2
audit: fix gist patch URL regex
Closes Homebrew/homebrew#27255. Signed-off-by: Jack Nagel <jacknagel@gmail.com> Conflicts: Library/Homebrew/cmd/audit.rb
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 624e223e7..1c4be9244 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -304,7 +304,7 @@ class FormulaAuditor
def audit_patch(patch)
case patch.url
- when %r[raw\.github\.com], %r[gist\.github\.com/raw], %r[gist\.github\.com/.+/raw$]
+ when %r[raw\.github\.com], %r[gist\.github\.com/raw], %r[gist\.github\.com/.+/raw]
unless patch.url =~ /[a-fA-F0-9]{40}/
problem "GitHub/Gist patches should specify a revision:\n#{patch.url}"
end