diff --git a/source/safe_eval.py b/source/safe_eval.py index dc6f466..9329f5f 100644 --- a/source/safe_eval.py +++ b/source/safe_eval.py @@ -126,3 +126,5 @@ def multiple_safe_eval(template: str, extra_token_map: dict[str, str] = None, en # pass everything between TOKEN_START and TOKEN_END in the function return re.sub(rf"{TOKEN_START}(.*?){TOKEN_END}", format_part_template, template) + +# TODO: see if extra_token_map can't be shortened