We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a986ff3 commit 246bce6Copy full SHA for 246bce6
src/Console/Command/AddPrefixCommand.php
@@ -195,7 +195,8 @@ private function scopeFiles(
195
foreach ($filesWithContents as [$inputFilePath, $inputContents]) {
196
$outputFilePath = $output.str_replace($commonPath, '', $inputFilePath);
197
198
- if (preg_match('~((?:.*)\/vendor)\/.*~', $outputFilePath, $matches)) {
+ $pattern = '~((?:.*)\\'.DIRECTORY_SEPARATOR.'vendor)\\'.DIRECTORY_SEPARATOR.'.*~';
199
+ if (preg_match($pattern, $outputFilePath, $matches)) {
200
$vendorDirs[$matches[1]] = true;
201
}
202
0 commit comments