From 9a97453a208e3a7d8f93a2f9ef5c2fd508490bf5 Mon Sep 17 00:00:00 2001 From: Faraphel Date: Wed, 20 Jul 2022 10:30:03 +0200 Subject: [PATCH] added a todo --- source/safe_eval.py | 2 ++ 1 file changed, 2 insertions(+) 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