From a51146f5e2cffe6bac6939b014f57cb757f8b9ac Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Mon, 29 Mar 2010 14:45:15 -0400 Subject: [PATCH] Fixed RegEx used in changeDelimiter call to match initial RegEx string. This doesn't really need the section tag modifiers (# and /) but they are included here for consistency. --- Mustache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mustache.php b/Mustache.php index 838d21b..578d060 100644 --- a/Mustache.php +++ b/Mustache.php @@ -290,7 +290,7 @@ class Mustache { $otag = $this->prepareRegEx($this->otag); $ctag = $this->prepareRegEx($this->ctag); - $this->tagRegEx = '/' . $otag . "(=|!|>|\\{|%)?([^\/#]+?)\\1?" . $ctag . "+/"; + $this->tagRegEx = '/' . $otag . "(#|\/|=|!|>|\\{|&)?([^\/#]+?)\\1?" . $ctag . "+/"; return ''; }