Skip to content

Commit

Permalink
fix: multi-line template tags, bcosca/fatfree#1285
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Sep 22, 2024
1 parent 8d6bf7c commit d3108e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d3108e1

Please sign in to comment.