From d3108e1e56b0ae16769a30333c24a1a0dabb7b34 Mon Sep 17 00:00:00 2001 From: ikkez Date: Mon, 23 Sep 2024 00:18:31 +0200 Subject: [PATCH] fix: multi-line template tags, bcosca/fatfree#1285 --- template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.php b/template.php index 2faa4e34..431d6072 100644 --- a/template.php +++ b/template.php @@ -275,7 +275,7 @@ function parse($text) { if (preg_match('/^(.{0,'.$w.'}?)<(\/?)(?:F3:)?'. '('.$this->tags.')\b((?:\s+[\w.:@!\-]+'. '(?:\h*=\h*(?:"(?:.*?)"|\'(?:.*?)\'))?|'. - '\h*\{\{.+?\}\})*)\h*(\/?)>/is', + '\h*\{\{.+?\}\})*)\s*(\/?)>/is', substr($text,$ptr),$match)) { if (strlen($tmp) || isset($match[1])) $tree[]=$tmp.$match[1];