Permalink
Browse files

Modify gist tag regex (#585)

  • Loading branch information...
benhalpern committed Sep 3, 2018
1 parent 1a77a6b commit dcb73a7009317d4ec46da2fc20e765c0a480cd98
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/liquid_tags/gist_tag.rb
@@ -38,7 +38,7 @@ def parse_link(link)
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

0 comments on commit dcb73a7

Please sign in to comment.