allow variables starting with $ and @

This commit is contained in:
pantor
2021-01-16 16:40:03 +01:00
parent 316567898e
commit a3b0b41d48
4 changed files with 14 additions and 0 deletions

View File

@@ -161,6 +161,8 @@ TEST_CASE("functions") {
CHECK(env.render("{{ exists(\"zipcode\") }}", data) == "false");
CHECK(env.render("{{ exists(name) }}", data) == "false");
CHECK(env.render("{{ exists(property) }}", data) == "true");
// CHECK(env.render("{{ exists(\"keywords\") and length(keywords) > 0 }}", data) == "false");
}
SUBCASE("existsIn") {