mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
chore: update dependencies
This commit is contained in:
parent
e12f9bb91c
commit
7434911275
7 changed files with 364 additions and 157 deletions
|
|
@ -236,11 +236,11 @@ class Plugin extends Model
|
|||
$template = preg_replace_callback(
|
||||
'/{%\s*for\s+(\w+)\s+in\s+([^|]+)\s*\|\s*([^}]+)%}/',
|
||||
function ($matches) {
|
||||
$variableName = trim($matches[1]);
|
||||
$collection = trim($matches[2]);
|
||||
$filter = trim($matches[3]);
|
||||
$tempVarName = '_temp_' . uniqid();
|
||||
|
||||
$variableName = mb_trim($matches[1]);
|
||||
$collection = mb_trim($matches[2]);
|
||||
$filter = mb_trim($matches[3]);
|
||||
$tempVarName = '_temp_'.uniqid();
|
||||
|
||||
return "{% assign {$tempVarName} = {$collection} | {$filter} %}{% for {$variableName} in {$tempVarName} %}";
|
||||
},
|
||||
$template
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue