Skip to content

Commit

Permalink
Modify gist tag regex (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
benhalpern committed Sep 3, 2018
1 parent 1a77a6b commit dcb73a7
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 =~ /^https\:\/\/gist\.github\.com\/([a-zA-Z0-9\-]){1,39}\/([a-zA-Z0-9]){32}\s$/)&.
zero?
end
end
Expand Down

0 comments on commit dcb73a7

Please sign in to comment.