mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
regexp: Require non-empty filter and defaults matches in the viewport
This commit is contained in:
parent
29446329c8
commit
07cbe55c72
1 changed files with 2 additions and 2 deletions
|
@ -47,10 +47,10 @@ GENERIC_VIEWPORT = re.compile(
|
||||||
'(?P<name>[^=\|\[\{]*)' # Name of the viewport, all before the | sign
|
'(?P<name>[^=\|\[\{]*)' # Name of the viewport, all before the | sign
|
||||||
# Cannot include '[', '=', '|, and '{'
|
# Cannot include '[', '=', '|, and '{'
|
||||||
'\|' # Colon
|
'\|' # Colon
|
||||||
'(?P<filter>[^=\|]*?)' # Filter
|
'(?P<filter>[^=\|]+?)' # Filter
|
||||||
'(' # Optional defaults
|
'(' # Optional defaults
|
||||||
'\|' # Colon
|
'\|' # Colon
|
||||||
'(?P<defaults>[^=\|]*?)' # Default attrs
|
'(?P<defaults>[^=\|]+?)' # Default attrs
|
||||||
')?'
|
')?'
|
||||||
'\s*' # Any whitespace
|
'\s*' # Any whitespace
|
||||||
'(#(?P<source>[A-Z]))?' # Optional source indicator
|
'(#(?P<source>[A-Z]))?' # Optional source indicator
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue