From e00bf1f9a80be971cd8338cdf9f764b27102e36f Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 18 Sep 2022 03:19:37 -0700 Subject: [PATCH] fix images in slur replacer (#359) doesn't work with ALL CAPS TEXT, there's prolly a better way for this --- files/helpers/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 180546140..55f916cd8 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -111,7 +111,7 @@ def sub_matcher(match, upper=False): return match.group(0) else: repl = SLURS[match.group(0).lower()] - return repl if not upper else repl.upper() + return repl if not upper or "