mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 15:53:07 +02:00
regexps: Accomodate for source indicator inside the heading
This commit is contained in:
parent
961d405107
commit
cbe88d9623
1 changed files with 5 additions and 2 deletions
|
@ -53,11 +53,14 @@ GENERIC_VIEWPORT = re.compile(
|
|||
'[=]+' # Heading begging
|
||||
'(?P<name>[^=\|]*)' # Name of the viewport, all before the | sign
|
||||
'\|' # 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
|
||||
'\s*' # Any whitespace
|
||||
'[=]+' # Header ending
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue