File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
setup/src/Magento/Setup/Console/Command Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ private function getExcludedModulePaths(array $modulePaths)
221
221
$ vendorPathsRegExps [] = $ vendorDir
222
222
. '/(?: ' . join ('| ' , $ vendorModules ) . ') ' ;
223
223
}
224
- $ basePathsRegExps [] = $ basePath
224
+ $ basePathsRegExps [] = preg_quote ( $ basePath, ' # ' )
225
225
. '/(?: ' . join ('| ' , $ vendorPathsRegExps ) . ') ' ;
226
226
}
227
227
@@ -240,6 +240,10 @@ private function getExcludedModulePaths(array $modulePaths)
240
240
*/
241
241
private function getExcludedLibraryPaths (array $ libraryPaths )
242
242
{
243
+ $ libraryPaths = array_map (function ($ libraryPath ) {
244
+ return preg_quote ($ libraryPath , '# ' );
245
+ }, $ libraryPaths );
246
+
243
247
$ excludedLibraryPaths = [
244
248
'#^(?: ' . join ('| ' , $ libraryPaths ) . ')/([ \\w]+/)?Test# ' ,
245
249
'#^(?: ' . join ('| ' , $ libraryPaths ) . ')/([ \\w]+/)?tests# ' ,
You can’t perform that action at this time.
0 commit comments