forked from rDrama/rDrama
fix reddit replacement
parent
569d1790f2
commit
68717292b0
|
@ -239,8 +239,8 @@ reddit_domain_regex = re.compile("(^|\s|\()https?:\/\/(redd.it\/|((www\.|new\.)?
|
||||||
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:\/\/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)
|
||||||
tiktok_t_url_regex = re.compile("https:\/\/(vm.)?tiktok.com(\/t)?\/\w{9}", flags=re.A)
|
tiktok_t_url_regex = re.compile("https:\/\/(www\.|vm\.)?tiktok.com(\/t)?\/\w{9}", flags=re.A)
|
||||||
|
|
||||||
#run-time
|
#run-time
|
||||||
reddit_to_vreddit_regex = re.compile('(^|>|")https:\/\/old.reddit.com\/([ru])\/', flags=re.A)
|
reddit_to_vreddit_regex = re.compile('(^|>|")https:\/\/old.reddit.com\/([ru])\/', flags=re.A)
|
||||||
|
|
Loading…
Reference in New Issue