Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Add more functions
James Cole2219c9b46343
diff --git a/app/TransactionRules/Engine/CustomExpressionLanguage.php b/app/TransactionRules/Engine/CustomExpressionLanguage.phpindex a175ffc3f3..8c61a09547 100644--- a/app/TransactionRules/Engine/CustomExpressionLanguage.php+++ b/app/TransactionRules/Engine/CustomExpressionLanguage.php@@ -11,7 +11,7 @@ class CustomExpressionLanguage extends ExpressionLanguage{protected function registerFunctions(): void{- $basicPhpFunctions = ['min', 'max', 'substr', 'strlen', 'strpos'];+ $basicPhpFunctions = ['min', 'max', 'substr', 'strlen', 'strpos','strtolower','strtoupper','ucfirst','ucwords'];foreach ($basicPhpFunctions as $function) {$this->addFunction(ExpressionFunction::fromPhp($function));}