Modify gist tag regex (#585)

This commit is contained in:
Ben Halpern 2018-09-03 19:49:58 -04:00 committed by GitHub
parent 1a77a6b0ed
commit dcb73a7009
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ class GistTag < LiquidTagBase
end
def valid_link?(link)
(link =~ /^https\:\/\/gist\.github\.com\/([a-zA-Z0-9\-]){1,39}\/([a-zA-Z0-9]){32}\s/)&.
(link =~ /^https\:\/\/gist\.github\.com\/([a-zA-Z0-9\-]){1,39}\/([a-zA-Z0-9]){32}\s$/)&.
zero?
end
end