Skip to content

Commit 0d013a3

Browse files
committed
Removes restrictions in viewport names
1 parent 8c4da3a commit 0d013a3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

taskwiki/regexp.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
re.compile(
4747
'^' # Starts at the begging of the line
4848
'[=]+' # Heading begging
49-
'(?P<name>[^=\|\[\{]*)' # Name of the viewport, all before the | sign
50-
# Cannot include '[', '=', '|, and '{'
49+
'(?P<name>[^=\|]*)' # Name of the viewport, all before the | sign
5150
'\|' # Colon
5251
'(?P<filter>[^=\|]+?)' # Filter
5352
'(' # Optional defaults
@@ -65,8 +64,7 @@
6564
re.compile(
6665
'^' # Starts at the begging of the line
6766
'[#]+' # Heading begging
68-
'(?P<name>[^#\|\[\{]*)' # Name of the viewport, all before the | sign
69-
# Cannot include '[', '=', '|, and '{'
67+
'(?P<name>[^#\|]*)' # Name of the viewport, all before the | sign
7068
'\|' # Colon
7169
'(?P<filter>[^#\|]+?)' # Filter
7270
'(' # Optional defaults

0 commit comments

Comments
 (0)