diff --git a/files/helpers/regex.py b/files/helpers/regex.py index c15e29ade..b1c60514d 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -123,8 +123,6 @@ def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str], return match_str else: repl = replace_with[match_str.lower()] - if not isinstance(repl, str): - repl = random.choice(repl) return repl if not upper or "