From fee6f6fd386a1bc2b4f673c76dd919f2118b2b49 Mon Sep 17 00:00:00 2001 From: Marion Dorsett Date: Fri, 13 Jun 2025 07:42:40 -0400 Subject: [PATCH] Modified Preview::build() to allow for Twig template comments {# #} --- base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.php b/base.php index ef1b8f1e..2524cd30 100644 --- a/base.php +++ b/base.php @@ -3168,7 +3168,7 @@ function filter($key=NULL,$func=NULL) { **/ protected function build($node) { return preg_replace_callback( - '/\{~(.+?)~\}|\{\*(.+?)\*\}|\{\-(.+?)\-\}|'. + '/\{~(.+?)~\}|\{[\*|\#](.+?)[\*|\#]\}|\{\-(.+?)\-\}|'. '\{\{(.+?)\}\}((\r?\n)*)/s', function($expr) { if ($expr[1])