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.
This commit is contained in:
Rahat Baksh
2024-05-15 18:01:02 +06:00
committed by GitHub
parent 5baff93cf2
commit cdd5cdbddd

View File

@@ -342,7 +342,7 @@ function determineSeparator(string $path): string
function replaceForWindows(): array
{
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 author@domain.com"'));
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 author@domain.com"'));
}
function replaceForAllOtherOSes(): array