mirror of
https://github.com/silverstripe/recipe-plugin.git
synced 2024-10-22 14:05:55 +02:00
Fix unbound regexp
This commit is contained in:
parent
d715b1a779
commit
dbce891bb7
@ -77,7 +77,7 @@ class RecipeInstaller extends LibraryInstaller {
|
||||
foreach($patterns as $pattern) {
|
||||
$expressions[] = $this->globToRegexp($pattern);
|
||||
}
|
||||
$regExp = '#' . $this->globToRegexp($sourceRoot . '/').'(('.implode(')|(', $expressions).'))#';
|
||||
$regExp = '#^' . $this->globToRegexp($sourceRoot . '/').'(('.implode(')|(', $expressions).'))$#';
|
||||
|
||||
// Build directory iterator
|
||||
$directoryIterator = new RecursiveDirectoryIterator(
|
||||
|
Loading…
Reference in New Issue
Block a user