mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
This commit is contained in:
parent
495bbe7b7e
commit
425dbf6b3f
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ class Plugin extends Model
|
||||||
// This handles: {% for item in collection | filter: "key", "value" %}
|
// This handles: {% for item in collection | filter: "key", "value" %}
|
||||||
// Converts to: {% assign temp_filtered = collection | filter: "key", "value" %}{% for item in temp_filtered %}
|
// Converts to: {% assign temp_filtered = collection | filter: "key", "value" %}{% for item in temp_filtered %}
|
||||||
$template = preg_replace_callback(
|
$template = preg_replace_callback(
|
||||||
'/{%\s*for\s+(\w+)\s+in\s+([^|]+)\s*\|\s*([^}]+)%}/',
|
'/{%\s*for\s+(\w+)\s+in\s+([^|%}]+)\s*\|\s*([^%}]+)%}/',
|
||||||
function ($matches) {
|
function ($matches) {
|
||||||
$variableName = mb_trim($matches[1]);
|
$variableName = mb_trim($matches[1]);
|
||||||
$collection = mb_trim($matches[2]);
|
$collection = mb_trim($matches[2]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue