From 07cbe55c722c9c1434c7a9fb4710a0a1b80320f3 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 23 May 2016 22:32:18 +0200 Subject: [PATCH] regexp: Require non-empty filter and defaults matches in the viewport --- taskwiki/regexp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taskwiki/regexp.py b/taskwiki/regexp.py index 3730e0a..5eb7369 100644 --- a/taskwiki/regexp.py +++ b/taskwiki/regexp.py @@ -47,10 +47,10 @@ GENERIC_VIEWPORT = re.compile( '(?P[^=\|\[\{]*)' # Name of the viewport, all before the | sign # Cannot include '[', '=', '|, and '{' '\|' # Colon - '(?P[^=\|]*?)' # Filter + '(?P[^=\|]+?)' # Filter '(' # Optional defaults '\|' # Colon - '(?P[^=\|]*?)' # Default attrs + '(?P[^=\|]+?)' # Default attrs ')?' '\s*' # Any whitespace '(#(?P[A-Z]))?' # Optional source indicator