smallut: the eq of regexec is std::regex_search, not match
This commit is contained in:
parent
9a68157907
commit
4a5bdd98c3
@ -1283,7 +1283,7 @@ bool SimpleRegexp::simpleMatch(const string& val) const
|
|||||||
{
|
{
|
||||||
if (!ok())
|
if (!ok())
|
||||||
return false;
|
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
|
string SimpleRegexp::getMatch(const string& val, int i) const
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user