Fix unbound regexp

This commit is contained in:
Damian Mooyman 2016-09-13 10:25:47 +12:00
parent d715b1a779
commit dbce891bb7

View File

@ -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(