forked from rDrama/rDrama
sdf
parent
490bd93ef9
commit
5472791617
|
@ -680,7 +680,7 @@ video_regex = re.compile('<p><a href="(https:\/\/.*?\.(mp4|webm|mov))" rel="nofo
|
||||||
unlinked_regex = re.compile('(^|\s|<p>)(https:\/\/[^ <>]*)', flags=re.A)
|
unlinked_regex = re.compile('(^|\s|<p>)(https:\/\/[^ <>]*)', flags=re.A)
|
||||||
imgur_regex = re.compile('(https://i\.imgur\.com/([^_]*?))\.(jpg|png|jpeg|webp)(?!</code>)', flags=re.A)
|
imgur_regex = re.compile('(https://i\.imgur\.com/([^_]*?))\.(jpg|png|jpeg|webp)(?!</code>)', flags=re.A)
|
||||||
reddit_regex = re.compile('(^|\s|<p>)\/?((r|u)\/(\w|-){3,25})', flags=re.A)
|
reddit_regex = re.compile('(^|\s|<p>)\/?((r|u)\/(\w|-){3,25})', flags=re.A)
|
||||||
sub_regex = re.compile('(^|\h|<p>)\/?(h\/(\w|-){3,25})', flags=re.A)
|
sub_regex = re.compile(r'(^|\h|<p>)\/?(h\/(\w|-){3,25})', flags=re.A)
|
||||||
youtube_regex = re.compile('" target="_blank">(https://youtube\.com/watch\?v\=(.*?))</a>(?!</code>)', flags=re.A)
|
youtube_regex = re.compile('" target="_blank">(https://youtube\.com/watch\?v\=(.*?))</a>(?!</code>)', flags=re.A)
|
||||||
strikethrough_regex = re.compile('~{1,2}([^~]+)~{1,2}', flags=re.A)
|
strikethrough_regex = re.compile('~{1,2}([^~]+)~{1,2}', flags=re.A)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue