Skip to content

Commit

Permalink
regular expression changed to simply string operation
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Jun 21, 2016
1 parent aee27ad commit 89ffc32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templatemap_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function findTemplateFilesInTemplatePath($templatePath)

$files = [];
foreach ($rii as $file) {
if (! preg_match('#^phtml$#i', $file->getExtension())) {
if (strtolower($file->getExtension()) != 'phtml') {
continue;
}

Expand Down

0 comments on commit 89ffc32

Please sign in to comment.