mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
regexp: Do not use greedy matching in viewport regexp
This commit is contained in:
parent
30236f0675
commit
7a033df669
1 changed files with 2 additions and 2 deletions
|
@ -46,10 +46,10 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue