mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-20 01:03:06 +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
|
'[=]+' # Heading begging
|
||||||
'(?P<name>[^=\|]*)' # Name of the viewport, all before the | sign
|
'(?P<name>[^=\|]*)' # Name of the viewport, all before the | sign
|
||||||
'\|' # 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
|
||||||
|
'(#(?P<source>[A-Z]))?' # Optional source indicator
|
||||||
|
'\s*' # Any whitespace
|
||||||
'[=]+' # Header ending
|
'[=]+' # Header ending
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue