From cb35480ee67826db2ba5d90787548b742091c406 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 20 Oct 2022 09:44:32 -0500 Subject: [PATCH] sanitize: replace cuneiform ban with an overline ban --- files/helpers/sanitize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 6ad659281..c7c213ea1 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -233,7 +233,8 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys sanitized = strikethrough_regex.sub(r'\1\2', sanitized) - sanitized = sanitized.replace('\u200e','').replace('\u200b','').replace("\ufeff", "").replace("𒐪","").replace("\u0589", ":") + # replacing zero width characters, overlines, fake colons + sanitized = sanitized.replace('\u200e','').replace('\u200b','').replace("\ufeff", "").replace("\u033f","").replace("\u0589", ":") sanitized = reddit_regex.sub(r'\1/\2', sanitized) sanitized = sub_regex.sub(r'\1/\2', sanitized)