regexp: Do not use greedy matching in viewport regexp

This commit is contained in:
Tomas Babej 2015-08-11 06:44:53 +02:00
parent 30236f0675
commit 7a033df669

View file

@ -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