regex filter: fix possibility of failing assertion in RegexItemFilter
This commit is contained in:
@@ -66,7 +66,7 @@ template <typename T> struct RegexItemFilter
|
|||||||
bool operator()(const Item &item) {
|
bool operator()(const Item &item) {
|
||||||
if (m_rx.regex().empty())
|
if (m_rx.regex().empty())
|
||||||
return true;
|
return true;
|
||||||
if (!m_rx.error().empty())
|
if (!m_rx.compiled() || !m_rx.error().empty())
|
||||||
return false;
|
return false;
|
||||||
return m_filter(m_rx, item);
|
return m_filter(m_rx, item);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user