From bdd6df2016097af3812520703aa70aac4b2eb6d1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 18 Jul 2023 14:35:27 +0300 Subject: [PATCH] more understandable syntax --- files/helpers/regex.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index aee131d99e..20d67b46e3 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -165,7 +165,10 @@ def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str], return match_str else: repl = replace_with[match_str.lower()] - return repl if not upper or "