From 299dbb78657d6bad54893896d228cc8fbcbc404c Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Mon, 19 Dec 2022 18:26:29 +1000 Subject: [PATCH] change regex string --- server/org_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/org_tools.py b/server/org_tools.py index 708796e..e9a53e3 100644 --- a/server/org_tools.py +++ b/server/org_tools.py @@ -64,7 +64,8 @@ Additionally, supports :selection, :comment and :tags expansions. You can look at `test_templates` for some specific examples. """ - py_template = re.sub(r'%[:]?([?\w]+)', r'{\1}', org_template) + # py_template = re.sub(r'%[:]?([?\w]+)', r'{\1}', org_template) + py_template = re.sub(r'[^\\]%[:]?([?\w]+)', r'{\1}', org_template) NOW = datetime.now() org_date = date2org(NOW)