You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I mainly asked in case you were wanting to embed an expression inside of another expression which is entirely possible:
var variables = new Dictionary<string, object>()
{
{ @"a", new Expression("[b]") },
{ @"b", "c" }
};
var expression = new Expression(@"[a]");
Console.WriteLine(expression.Evaluate(variables));
Describe the bug
Escaped variables not handled correctly.
To Reproduce
The following code evaluates to
"b"
:Expected behavior
The expected result would be
"a"
.Platform:
The text was updated successfully, but these errors were encountered: