Skip to content

Commit cdd5cdb

Browse files
authored
Update file search command to correctly handle plugin names containing 'vendor'
the command excludes all paths that contain vendor, but if the plugin name contains vendor in it i.e.: "multivendor" it filters all the valid paths out also. So specifically filtering out only the paths containing '\vendor' solves the issue.
1 parent 5baff93 commit cdd5cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function determineSeparator(string $path): string
342342

343343
function replaceForWindows(): array
344344
{
345-
return preg_split('/\\r\\n|\\r|\\n/', run('dir /S /B * | findstr /v /i .git\ | findstr /v /i vendor | findstr /v /i ' . basename(__FILE__) . ' | findstr /r /i /M /F:/ ":author :vendor :package VendorName skeleton migration_table_name vendor_name vendor_slug [email protected]"'));
345+
return preg_split('/\\r\\n|\\r|\\n/', run('dir /S /B * | findstr /v /i .git\ | findstr /v /i \\vendor\\ | findstr /v /i ' . basename(__FILE__) . ' | findstr /r /i /M /F:/ ":author :vendor :package VendorName skeleton migration_table_name vendor_name vendor_slug [email protected]"'));
346346
}
347347

348348
function replaceForAllOtherOSes(): array

0 commit comments

Comments
 (0)