mirror of https://github.com/djcb/mu.git
parser: small regex optimization
This commit is contained in:
parent
f59c899ae5
commit
f794cea6e7
|
@ -104,7 +104,11 @@ regex (const ProcIface::FieldInfoVec& fields, const std::string& v,
|
|||
field.id, term)}));
|
||||
}
|
||||
}
|
||||
return tree;
|
||||
|
||||
if (tree.children.empty())
|
||||
return empty();
|
||||
else
|
||||
return tree;
|
||||
|
||||
} catch (...) {
|
||||
// fallback
|
||||
|
|
Loading…
Reference in New Issue