Skip to content

Commit

Permalink
fix: Fix broken case for root-level expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Antaris committed Nov 11, 2024
1 parent ff4d523 commit 82134e5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libs/FuManchu/Binding/TemplateDataEvaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,9 @@ private static IEnumerable<ExpressionPair> GetRightToLeftExpressions(string expr
}

success = dict.TryGetValue(lookupKey, out value);
if (success)
if (success && value != null && key.Length > 0 && key.Length != lookupKey.Length)
{
if (key.Length > 0)
{
return EvalComplexExpression(value!, key);
}
return EvalComplexExpression(value!, key);
}
}
else if (indexableObject != null)
Expand Down

0 comments on commit 82134e5

Please sign in to comment.