make sure context=8 is always added to reddit comment link params

pull/216/head
Aevann 2023-10-29 16:40:48 +03:00
parent 1bb9462c06
commit dbef53ac1f
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ sanitize_url_regex = re.compile(
#sanitizing
reddit_mention_regex = re.compile('(?<![\w/])\/?(([ruRU])\/[\w-]{2,25})' + NOT_IN_CODE_OR_LINKS, flags=re.A)
reddit_domain_regex = re.compile("(^|\s|\()https?:\/\/(redd.it\/|((www\.|new\.)?reddit\.com|teddit\.net|libreddit\.hu|redd\.it)\/(u\/|(r\/\w{2,25}\/)?comments\/|r\/\w{2,25}\/?$))", flags=re.A)
reddit_comment_link_regex = re.compile("https:\/\/old.reddit.com\/r\/\w{2,25}\/comments(\/\w+){3}\/?", flags=re.A)
reddit_comment_link_regex = re.compile("https:\/\/old.reddit.com\/r\/\w{2,25}\/comments(\/\w+){3}\/?.*", flags=re.A)
#gevent
reddit_s_url_regex = re.compile("https:\/\/(www\.)?reddit.com\/[ru]\/\w{2,25}\/s\/\w{10}", flags=re.A)