Skip to content

Commit

Permalink
Remove DIRECTORY_SEPARATOR replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Sep 27, 2023
1 parent 3761b21 commit e2c7d31
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use function implode;
use function preg_match;
use function preg_quote;
use function preg_replace;
use function str_replace;
use function trim;

Expand Down Expand Up @@ -82,7 +81,6 @@ private function prepareBlacklistPatterns(array|null $blacklistPaths): array
$path = str_replace('/', DIRECTORY_SEPARATOR, $path);
$path = trim($path, DIRECTORY_SEPARATOR);
$path = preg_quote($path, '{}');
$path = preg_replace('{' . $dirSep . '+}', DIRECTORY_SEPARATOR, $path);
$path = str_replace('\\*\\*', '.+?', $path);
$path = str_replace('\\*', '[^' . $dirSep . ']+?', $path);
}
Expand Down

0 comments on commit e2c7d31

Please sign in to comment.