From 32079bc590b57119e588ce832d43d5b3e61baacb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 1 Sep 2021 23:09:43 +0200 Subject: [PATCH] vcvc --- files/helpers/sanitize.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 0eda71890..5297e59c8 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -241,10 +241,11 @@ 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/") - for i in re.finditer('[^">](https:\/\/[^ <>]*)', sanitized): - sanitized = sanitized.replace(i.group(1), f'{i.group(1)}') + sanitized = re.sub("se(x)", "fuck", sanitized) + # for i in re.finditer('[^">](https:\/\/[^ <>]*)', sanitized): + # sanitized = sanitized.replace(i.group(1), f'{i.group(1)}') - for i in re.finditer('

(https:\/\/[^ <>]*)', sanitized): - sanitized = sanitized.replace(i.group(1), f'{i.group(1)}') + # for i in re.finditer('

(https:\/\/[^ <>]*)', sanitized): + # sanitized = sanitized.replace(i.group(1), f'{i.group(1)}') return sanitized