forked from rDrama/rDrama
make sure context=8 is always added to reddit comment link params
parent
1bb9462c06
commit
dbef53ac1f
|
@ -236,7 +236,7 @@ sanitize_url_regex = re.compile(
|
||||||
#sanitizing
|
#sanitizing
|
||||||
reddit_mention_regex = re.compile('(?<![\w/])\/?(([ruRU])\/[\w-]{2,25})' + NOT_IN_CODE_OR_LINKS, flags=re.A)
|
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_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
|
#gevent
|
||||||
reddit_s_url_regex = re.compile("https:\/\/(www\.)?reddit.com\/[ru]\/\w{2,25}\/s\/\w{10}", flags=re.A)
|
reddit_s_url_regex = re.compile("https:\/\/(www\.)?reddit.com\/[ru]\/\w{2,25}\/s\/\w{10}", flags=re.A)
|
||||||
|
|
Loading…
Reference in New Issue