Skip to content

Commit

Permalink
Merge pull request #2163 from sopel-irc/reddit-post-link-query
Browse files Browse the repository at this point in the history
reddit: don't anchor to end of post links
  • Loading branch information
dgw authored Aug 8, 2021
2 parents 8eee9ab + cd10576 commit aac60ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel/modules/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

domain = r'https?://(?:www\.|old\.|pay\.|ssl\.|[a-z]{2}\.)?reddit\.com'
subreddit_url = r'%s/r/([\w-]+)/?$' % domain
post_url = r'%s/r/\S+?/comments/([\w-]+)(?:/[\w%%]+)?/?$' % domain
post_url = r'%s/r/\S+?/comments/([\w-]+)(?:/[\w%%]+)?/?' % domain
short_post_url = r'https?://redd\.it/([\w-]+)'
user_url = r'%s/u(?:ser)?/([\w-]+)' % domain
comment_url = r'%s/r/\S+?/comments/\S+?/\S+?/([\w-]+)' % domain
Expand Down

0 comments on commit aac60ea

Please sign in to comment.