Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 89ffc32

Browse files
committed
regular expression changed to simply string operation
1 parent aee27ad commit 89ffc32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/templatemap_generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function findTemplateFilesInTemplatePath($templatePath)
141141

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

0 commit comments

Comments
 (0)