瀏覽代碼

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.

Justin Hileman 15 年之前
父節點
當前提交
a51146f5e2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Mustache.php

+ 1 - 1
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 '';
 	}