change regex string

This commit is contained in:
Anish Lakhwara 2022-12-19 18:26:29 +10:00
parent feb74fdf2d
commit 299dbb7865

View file

@ -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)