From 1289961c08c2c38cf6e89cfb3300271ece36be00 Mon Sep 17 00:00:00 2001 From: "Lex Darlog (DRL)" <3897975+Lex-DRL@users.noreply.github.com> Date: Sun, 31 Aug 2025 05:04:11 +0500 Subject: [PATCH] + bugfix: properly handle multiline templates in safe-mode regex --- node_formatter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node_formatter.py b/node_formatter.py index 6ade2ef..51e3a86 100644 --- a/node_formatter.py +++ b/node_formatter.py @@ -29,7 +29,9 @@ _re_formatting_keyword_match = _re.compile( # Pre-compiled regex match to extra r'(?P\{+)' r'(?P[^{}]+)' r'(?P\}+)' - r'(?P[^{}].*)?$' + r'(?P[^{}].*)?$', + # flags=_re.DOTALL | _re.IGNORECASE, + flags = _re.DOTALL, # We need dot to match new lines, too ).match