summaryrefslogtreecommitdiffstats
path: root/src/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c
index 96ac41d..1bf3b29 100644
--- a/src/event.c
+++ b/src/event.c
@@ -152,6 +152,8 @@ struct event *event_scan(FILE * f, struct tm start, int id, char *note,
if (filter) {
if (!(filter->type_mask & TYPE_MASK_EVNT))
return NULL;
+ if (filter->regex && regexec(filter->regex, buf, 0, 0, 0))
+ return NULL;
if (filter->start_from >= 0 && tstart < filter->start_from)
return NULL;
if (filter->start_to >= 0 && tstart > filter->start_to)