diff --git a/src/regex_filter.h b/src/regex_filter.h index 4258a2b1..047a29be 100644 --- a/src/regex_filter.h +++ b/src/regex_filter.h @@ -66,7 +66,7 @@ template struct RegexItemFilter bool operator()(const Item &item) { if (m_rx.regex().empty()) return true; - if (!m_rx.error().empty()) + if (!m_rx.compiled() || !m_rx.error().empty()) return false; return m_filter(m_rx, item); }