Add jinja_pass_arg to reserved template names (#107822)

This commit is contained in:
J. Nick Koston 2024-01-11 22:34:49 -10:00 committed by GitHub
parent 46a06bc8cd
commit fb0dad66db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,12 @@ _RE_JINJA_DELIMITERS = re.compile(r"\{%|\{\{|\{#")
# Match "simple" ints and floats. -1.0, 1, +5, 5.0
_IS_NUMERIC = re.compile(r"^[+-]?(?!0\d)\d*(?:\.\d*)?$")
_RESERVED_NAMES = {"contextfunction", "evalcontextfunction", "environmentfunction"}
_RESERVED_NAMES = {
"contextfunction",
"evalcontextfunction",
"environmentfunction",
"jinja_pass_arg",
}
_GROUP_DOMAIN_PREFIX = "group."
_ZONE_DOMAIN_PREFIX = "zone."