Skip to content

Commit

Permalink
Update gist tag regex (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhao-Andy authored and benhalpern committed Sep 11, 2018
1 parent 746329d commit ff9d2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/liquid_tags/gist_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 =~ /\Ahttps\:\/\/gist\.github\.com\/([a-zA-Z0-9\-]){1,39}\/([a-zA-Z0-9]){32}\s\Z/)&.
zero?
end
end
Expand Down

0 comments on commit ff9d2c7

Please sign in to comment.