mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-13 10:32:58 +01:00
Fix broken build
This commit is contained in:
parent
bbe62ecd7d
commit
0ee3bada09
@ -847,7 +847,7 @@ public:
|
||||
std::string pattern(constraint.getPattern<std::string::allocator_type>());
|
||||
auto it = m_regexesCache.find(pattern);
|
||||
if (it == m_regexesCache.end()) {
|
||||
it = m_regexesCache.emplace(pattern, pattern).first;
|
||||
it = m_regexesCache.emplace(pattern, std::regex(pattern)).first;
|
||||
}
|
||||
|
||||
if (!std::regex_search(m_target.asString(), it->second)) {
|
||||
|
Loading…
Reference in New Issue
Block a user