mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
stricter regex in autoloader
"I know, I'll use a regular expression...."
This commit is contained in:
parent
3fd7416a70
commit
6ac0ca1120
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class Autoloader
|
|||
|
||||
$dir = new RecursiveDirectoryIterator(ROOT_DIR, RecursiveDirectoryIterator::SKIP_DOTS);
|
||||
$ite = new RecursiveIteratorIterator($dir);
|
||||
$pathIterator = new RegexIterator($ite, '/.*\.class\.php/', RegexIterator::GET_MATCH);
|
||||
$pathIterator = new RegexIterator($ite, '/.*\.class\.php$/', RegexIterator::GET_MATCH);
|
||||
foreach($pathIterator as $paths)
|
||||
{
|
||||
foreach($paths as $path)
|
||||
|
|
Loading…
Add table
Reference in a new issue