Update gist tag regex (#628)

This commit is contained in:
Andy Zhao 2018-09-11 13:29:28 -04:00 committed by Ben Halpern
parent 746329d4ef
commit ff9d2c7f7a

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 =~ /\Ahttps\:\/\/gist\.github\.com\/([a-zA-Z0-9\-]){1,39}\/([a-zA-Z0-9]){32}\s\Z/)&.
zero?
end
end