1
0
Fork 0

Merge pull request #4568 from annesosensio/patch-1

Made wildcard expansion consistent with bash
pull/4571/head
Jordi Boggiano 2015-10-30 20:40:20 +00:00
commit 87081f3be8
1 changed files with 2 additions and 2 deletions

View File

@ -691,8 +691,8 @@ FOOTER;
$path = preg_quote(trim(strtr($path, '\\', '/'), '/'));
// add support for wildcards * and **
$path = str_replace('\\*\\*', '.*?', $path);
$path = str_replace('\\*', '[^/]*?', $path);
$path = str_replace('\\*\\*', '.+?', $path);
$path = str_replace('\\*', '[^/]+?', $path);
$autoloads[] = empty($installPath) ? preg_quote(strtr(getcwd(), '\\', '/')) . '/' . $path : preg_quote($installPath) . '/' . $path;
continue;