fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/5949837#context
parent
46412f664c
commit
7009a6ffc6
|
@ -238,7 +238,7 @@ sanitize_url_regex = re.compile(
|
|||
###REDDIT
|
||||
|
||||
#sanitizing
|
||||
reddit_mention_regex = re.compile('(^|\s)\/?((r|u)\/[\w-]{2,25})' + NOT_IN_CODE_OR_LINKS, flags=re.I|re.A)
|
||||
reddit_mention_regex = re.compile('([>\s])\/?((r|u)\/[\w-]{2,25})' + NOT_IN_CODE_OR_LINKS, flags=re.I|re.A)
|
||||
reddit_domain_regex = re.compile("(^|\s|\()https?:\/\/(redd.it\/|((www\.|new\.)?reddit\.com|teddit\.net|libreddit\.hu|redd\.it)\/(u\/|user\/|(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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue