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

Cherry-picked from master: aac60ea
  • Loading branch information
dgw committed Aug 8, 2021
1 parent 0dec496 commit 0f88641
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 @@ -39,7 +39,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 0f88641

Please sign in to comment.