Merge branch 'release/0.2.7'
This commit is contained in:
+4
-4
@@ -205,7 +205,7 @@ class Mustache {
|
|||||||
protected function _renderSection($template) {
|
protected function _renderSection($template) {
|
||||||
$otag = preg_quote($this->_otag, '/');
|
$otag = preg_quote($this->_otag, '/');
|
||||||
$ctag = preg_quote($this->_ctag, '/');
|
$ctag = preg_quote($this->_ctag, '/');
|
||||||
$regex = '/' . $otag . '(\\^|\\#)\\s*(.+?)\\s*' . $ctag . '\\s*([\\s\\S]+?)' . $otag . '\\/\\s*\\2\\s*' . $ctag . '\\s*/m';
|
$regex = '/' . $otag . '(\\^|\\#)\\s*(.+?)\\s*' . $ctag . '\\s*([\\s\\S]+?)' . $otag . '\\/\\s*\\2\\s*' . $ctag . '\\s*/ms';
|
||||||
|
|
||||||
$matches = array();
|
$matches = array();
|
||||||
while (preg_match($regex, $template, $matches, PREG_OFFSET_CAPTURE)) {
|
while (preg_match($regex, $template, $matches, PREG_OFFSET_CAPTURE)) {
|
||||||
@@ -284,7 +284,7 @@ class Mustache {
|
|||||||
|
|
||||||
$otag = preg_quote($this->_otag, '/');
|
$otag = preg_quote($this->_otag, '/');
|
||||||
$ctag = preg_quote($this->_ctag, '/');
|
$ctag = preg_quote($this->_ctag, '/');
|
||||||
$regex = '/' . $otag . '%\\s*([\\w_-]+)((?: [\\w]+=[\\w]+)*)\\s*' . $ctag . '\\n?/';
|
$regex = '/' . $otag . '%\\s*([\\w_-]+)((?: [\\w]+=[\\w]+)*)\\s*' . $ctag . '\\n?/s';
|
||||||
return preg_replace_callback($regex, array($this, '_renderPragma'), $template);
|
return preg_replace_callback($regex, array($this, '_renderPragma'), $template);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -385,7 +385,7 @@ class Mustache {
|
|||||||
$otag = preg_quote($this->_otag, '/');
|
$otag = preg_quote($this->_otag, '/');
|
||||||
$ctag = preg_quote($this->_ctag, '/');
|
$ctag = preg_quote($this->_ctag, '/');
|
||||||
|
|
||||||
$this->_tagRegEx = '/' . $otag . "([#\^\/=!>\\{&])?(.+?)\\1?" . $ctag . "+/";
|
$this->_tagRegEx = '/' . $otag . "([#\^\/=!>\\{&])?(.+?)\\1?" . $ctag . "+/s";
|
||||||
|
|
||||||
$html = '';
|
$html = '';
|
||||||
$matches = array();
|
$matches = array();
|
||||||
@@ -523,7 +523,7 @@ class Mustache {
|
|||||||
|
|
||||||
$otag = preg_quote($this->_otag, '/');
|
$otag = preg_quote($this->_otag, '/');
|
||||||
$ctag = preg_quote($this->_ctag, '/');
|
$ctag = preg_quote($this->_ctag, '/');
|
||||||
$this->_tagRegEx = '/' . $otag . "([#\^\/=!>\\{&])?(.+?)\\1?" . $ctag . "+/";
|
$this->_tagRegEx = '/' . $otag . "([#\^\/=!>\\{&])?(.+?)\\1?" . $ctag . "+/s";
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user