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
+5
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))
{
+1 -1
View File
@@ -119,7 +119,7 @@ public abstract class ImageBaseNode:Node
{
args.Variables["img.DateTaken"] = imageInfo.DateTaken.Value;
args.Variables["img.DateYear"] = imageInfo.DateTaken.Value.Year;
args.Variables["img.DateMont"] = imageInfo.DateTaken.Value.Year;
args.Variables["img.DateMonth"] = imageInfo.DateTaken.Value.Year;
}
else
args.Variables.Remove("img.DateTaken");