From 4a5bdd98c335a240832abca2c50ec6d609338d53 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 7 Aug 2019 17:04:51 +0200 Subject: [PATCH] smallut: the eq of regexec is std::regex_search, not match --- src/utils/smallut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/smallut.cpp b/src/utils/smallut.cpp index 282eed63..f58dbfc0 100644 --- a/src/utils/smallut.cpp +++ b/src/utils/smallut.cpp @@ -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