Skip to content

Commit ad210dd

Browse files
committed
Updating regex for partial detection
1 parent 4cca759 commit ad210dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MustacheHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private function _loadTemplate( $element, $load_sub_templates = true ) {
142142
*/
143143
private function _loadPartials( $template ) {
144144
//Extract names of any partials from the template
145-
preg_match_all( '/\{\{[\s]*\>[\s]*(.*)[\s]*\}\}/', $template, $partials );
145+
preg_match_all( '/\{\{\> (\S+)\}\}/', $template, $partials );
146146

147147
// iterate through the partials
148148
// adds the corresponding templates to the partials list while avoiding duplicates

0 commit comments

Comments
 (0)