mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-23 11:27:46 +02:00
Regexps: Pre-compile GENERIC_TASK
This commit is contained in:
parent
b4f83393ea
commit
62c853a0c2
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ TASKS_TO_SAVE_TO_TW = ''.join([
|
||||||
'(', UUID_COMMENT, FINAL_SEGMENT_SEPARATOR_UNNAMED, ')?' # UUID is not there for new tasks
|
'(', UUID_COMMENT, FINAL_SEGMENT_SEPARATOR_UNNAMED, ')?' # UUID is not there for new tasks
|
||||||
])
|
])
|
||||||
|
|
||||||
GENERIC_TASK = ''.join([
|
GENERIC_TASK = re.compile(''.join([
|
||||||
EMPTY_SPACE,
|
EMPTY_SPACE,
|
||||||
BRACKET_OPENING,
|
BRACKET_OPENING,
|
||||||
COMPLETION_MARK,
|
COMPLETION_MARK,
|
||||||
|
@ -39,7 +39,7 @@ GENERIC_TASK = ''.join([
|
||||||
FINAL_SEGMENT_SEPARATOR_UNNAMED,
|
FINAL_SEGMENT_SEPARATOR_UNNAMED,
|
||||||
'(', DUE, FINAL_SEGMENT_SEPARATOR_UNNAMED, ')?' # Due is optional
|
'(', DUE, FINAL_SEGMENT_SEPARATOR_UNNAMED, ')?' # Due is optional
|
||||||
'(', UUID_COMMENT, FINAL_SEGMENT_SEPARATOR_UNNAMED, ')?' # UUID is not there for new tasks
|
'(', UUID_COMMENT, FINAL_SEGMENT_SEPARATOR_UNNAMED, ')?' # UUID is not there for new tasks
|
||||||
])
|
]))
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue