change regex string
This commit is contained in:
parent
feb74fdf2d
commit
299dbb7865
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue