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 e1a0277 commit 72e170aCopy full SHA for 72e170a
src/Runner/Filter/NameFilterIterator.php
@@ -12,7 +12,6 @@
12
use function end;
13
use function preg_match;
14
use function sprintf;
15
-use function str_replace;
16
use function substr;
17
use PHPUnit\Framework\Test;
18
use PHPUnit\Framework\TestSuite;
@@ -116,15 +115,10 @@ private function prepareFilter(string $filter): array
116
115
);
117
}
118
119
- // Escape delimiters in regular expression. Do NOT use preg_quote,
120
- // to keep magic characters.
+ // Do NOT use preg_quote, to keep magic characters.
121
$filter = sprintf(
122
- '/%s/i',
123
- str_replace(
124
- '/',
125
- '\\/',
126
- $filter,
127
- ),
+ '{%s}i',
+ $filter,
128
129
130
0 commit comments