Skip to content

Commit

Permalink
Fix for issue #163
Browse files Browse the repository at this point in the history
Update the regex used to find URLs to account for single quotes in the
pattern.
  • Loading branch information
fancypantalons committed Jan 23, 2022
1 parent 65efd7d commit 6aa3cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/generators/queue_webmentions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_mentioned_uris(post)
if post.data["in_reply_to"]
uris[post.data["in_reply_to"]] = false
end
post.content.scan(/(?:https?:)?\/\/[^\s)#\[\]{}<>%|\^"]+/) do |match|
post.content.scan(/(?:https?:)?\/\/[^\s)#\[\]{}<>%|\^"']+/) do |match|
unless uris.key? match
uris[match] = false
end
Expand Down

0 comments on commit 6aa3cd4

Please sign in to comment.