master
Aevann1 2021-09-01 23:11:44 +02:00
parent c5771864f2
commit 65c17747c8
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ def sanitize(sanitized, noimages=False):
for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]:
sanitized = sanitized.replace(rd, "https://old.reddit.com/")
sanitized = re.sub("se(x)", "fuck/1", sanitized)
sanitized = re.sub("se(x)", "fuck\1", sanitized)
# for i in re.finditer('[^">](https:\/\/[^ <>]*)', sanitized):
# sanitized = sanitized.replace(i.group(1), f'<a href="{i.group(1)}">{i.group(1)}</a>')