mirror of
https://github.com/norohind/SquadsActivityMonitor.git
synced 2025-04-12 21:07:12 +03:00
fix regexp for templates_engine, dont be greedy
This commit is contained in:
parent
3d22b716bd
commit
163c5a4a87
@ -7,8 +7,8 @@ from os.path import join
|
||||
import re
|
||||
templates_dir = 'templates'
|
||||
|
||||
variable_pattern: re.Pattern = re.compile(r'\{\{ .* }}')
|
||||
include_pattern: re.Pattern = re.compile(r'\{\{ @.* }}')
|
||||
variable_pattern: re.Pattern = re.compile(r'{{ .*? }}')
|
||||
include_pattern: re.Pattern = re.compile(r'{{ @.*? }}')
|
||||
|
||||
|
||||
def render(template_name: str, context: dict):
|
||||
|
Loading…
x
Reference in New Issue
Block a user