Commit 769185d6 authored by Milo Yip's avatar Milo Yip

Refactor regex

Remove mutable which causes reentrant issue
parent 328ead0e
This diff is collapsed.
......@@ -1011,7 +1011,8 @@ private:
}
static bool IsPatternMatch(const RegexType* pattern, const Ch *str, SizeType) {
return pattern->Search(str);
GenericRegexSearch<RegexType> rs(*pattern);
return rs.Search(str);
}
#elif RAPIDJSON_SCHEMA_USE_STDREGEX
template <typename ValueType>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment