Made wildcard expansion consistent with bash
parent
ac1a0c898d
commit
2e4157145b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue