Commit 52682115 authored by Milo Yip's avatar Milo Yip Committed by GitHub

Merge pull request #739 from miloyip/issue728_threadsafe

Refactor regex
parents 328ead0e 769185d6
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