Added test case for context filter with radius option

This commit is contained in:
Bartek Kryza
2023-11-10 22:30:32 +01:00
parent 055897f11b
commit 39d3e1f0b0
10 changed files with 429 additions and 68 deletions

View File

@@ -426,7 +426,7 @@ template <> struct convert<context_config> {
using namespace std::string_literals;
if (node.IsMap() && has_key(node, "match")) {
rhs.radius = node["match"]["radius"].as<unsigned>();
rhs.pattern = node["match"]["radius"].as<string_or_regex>();
rhs.pattern = node["match"]["pattern"].as<string_or_regex>();
}
else {
rhs.radius = 1;