Fix missing regexp match

This commit is contained in:
Kijin Sung 2023-10-15 16:46:57 +09:00
parent 02639e9aa0
commit 94c16bc363

View file

@ -133,7 +133,7 @@ class Template
$this->relative_path = $this->relative_dirname . $filename;
if ($this->extension === null)
{
$this->extension = preg_match('/\.(?:blade\.php|[a-z]+)$/i', $filename, $m) ? $m[1] : '';
$this->extension = preg_match('/\.(blade\.php|[a-z]+)$/i', $filename, $m) ? $m[1] : '';
}
if ($this->exists === null)
{