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 "