[chore](mac compile) remove using regex to avoid mac compile failed frequently #30783
This commit is contained in:
@ -44,11 +44,6 @@ using std::vector;
|
||||
using std::string;
|
||||
using std::stringstream;
|
||||
|
||||
using boost::regex;
|
||||
using boost::regex_error;
|
||||
using boost::regex_match;
|
||||
using boost::smatch;
|
||||
|
||||
using ::google::protobuf::RepeatedPtrField;
|
||||
|
||||
namespace doris {
|
||||
@ -304,7 +299,7 @@ Status DeleteHandler::parse_condition(const std::string& condition_str, TConditi
|
||||
const char* const CONDITION_STR_PATTERN =
|
||||
R"(([\w$#%]+)\s*((?:=)|(?:!=)|(?:>>)|(?:<<)|(?:>=)|(?:<=)|(?:\*=)|(?:IS))\s*('((?:[\s\S]+)?)'|(?:[\s\S]+)?))";
|
||||
boost::regex ex(CONDITION_STR_PATTERN);
|
||||
if (regex_match(condition_str, what, ex)) {
|
||||
if (boost::regex_match(condition_str, what, ex)) {
|
||||
if (condition_str.size() != what[0].str().size()) {
|
||||
matched = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user