Skip to content

Escaped variable names #104

@sryffel

Description

@sryffel

Describe the bug
Escaped variables not handled correctly.

To Reproduce
The following code evaluates to "b":

var variables = new Dictionary<string, object>()
{
    { @"[a]", "a" },
    { @"\a\", "b" }
};
var expression = new Expression(@"[\[a\]]");
Console.WriteLine(expression.Evaluate(variables));

Expected behavior
The expected result would be "a".

Platform:

  • OS: .NET Core 3.1 on Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions