smallut: the eq of regexec is std::regex_search, not match

This commit is contained in:
Jean-Francois Dockes 2019-08-07 17:04:51 +02:00
parent 9a68157907
commit 4a5bdd98c3

View File

@ -1283,7 +1283,7 @@ bool SimpleRegexp::simpleMatch(const string& val) const
{
if (!ok())
return false;
return regex_match(val, m->res, m->expr);
return regex_search(val, m->res, m->expr);
}
string SimpleRegexp::getMatch(const string& val, int i) const