Skip to content
Snippets Groups Projects
Commit dc8218fd authored by Jack Nagel's avatar Jack Nagel
Browse files

audit: catch new style gist URLs

parent 9bbe38aa
No related branches found
No related tags found
No related merge requests found
......@@ -304,7 +304,8 @@ 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],
%r[gist\.githubusercontent\.com/.+/raw]
unless patch.url =~ /[a-fA-F0-9]{40}/
problem "GitHub/Gist patches should specify a revision:\n#{patch.url}"
end
......
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