mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +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
|
||||
# Cannot include '[', '=', '|, and '{'
|
||||
'\|' # Colon
|
||||
'(?P<filter>[^=\|]*?)' # Filter
|
||||
'(?P<filter>[^=\|]+?)' # Filter
|
||||
'(' # Optional defaults
|
||||
'\|' # Colon
|
||||
'(?P<defaults>[^=\|]*?)' # Default attrs
|
||||
'(?P<defaults>[^=\|]+?)' # Default attrs
|
||||
')?'
|
||||
'\s*' # Any whitespace
|
||||
'(#(?P<source>[A-Z]))?' # Optional source indicator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue