mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
Better validation, can now also use notes in expression.
This commit is contained in:
@@ -79,6 +79,7 @@ class ActionExpression
|
||||
'due_date',
|
||||
'process_date',
|
||||
'destination_transaction_id',
|
||||
'notes',
|
||||
];
|
||||
|
||||
private ExpressionLanguage $expressionLanguage;
|
||||
@@ -97,7 +98,7 @@ class ActionExpression
|
||||
|
||||
private static function isExpression(string $expr): bool
|
||||
{
|
||||
return str_starts_with($expr, '=');
|
||||
return str_starts_with($expr, '=') && strlen($expr) > 1;
|
||||
}
|
||||
|
||||
private function validate(): ?SyntaxError
|
||||
|
Reference in New Issue
Block a user