fd
This commit is contained in:
parent
6e751f15fd
commit
d006ed0896
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ allowed_styles = ['color', 'background-color', 'font-weight', 'transform', '-web
|
|||
|
||||
def sanitize(sanitized, noimages=False):
|
||||
|
||||
sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com").replace("𒐪","")
|
||||
sanitized = sanitized.replace("\ufeff", "").replace("𒐪","")
|
||||
|
||||
for i in re.finditer('https://i.imgur.com/(([^_]*?)\.(jpg|png|jpeg))', sanitized):
|
||||
sanitized = sanitized.replace(i.group(1), i.group(2) + "_d." + i.group(3) + "?maxwidth=9999")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue