FF-1958: Fixed typo in img.DateMonth

This commit is contained in:
John Andrews
2024-12-06 07:28:50 +13:00
parent be247b823f
commit f94fafec2c
2 changed files with 6 additions and 1 deletions

View File

@@ -44,12 +44,17 @@ public class Matches : Node
output++;
try
{
// the value is what we will test
object value;
// first try to see if the key is a Variable, and if it is get the variables value
if (Regex.IsMatch(match.Key, @"\{[\w\d\.-]+\}") &&
args.Variables.TryGetValue(match.Key[1..^1], out var varValue))
value = varValue;
else
{
// else, its not a variable, but it may contain a variable
value = args.ReplaceVariables(match.Key, stripMissing: true);
}
if (args.MathHelper.IsMathOperation(match.Value))
{