parser: small regex optimization
This commit is contained in:
@ -104,6 +104,10 @@ regex (const ProcIface::FieldInfoVec& fields, const std::string& v,
|
|||||||
field.id, term)}));
|
field.id, term)}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tree.children.empty())
|
||||||
|
return empty();
|
||||||
|
else
|
||||||
return tree;
|
return tree;
|
||||||
|
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|||||||
Reference in New Issue
Block a user