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 d6a474c commit 9e5b314Copy full SHA for 9e5b314
src/Util/FileMatcher.php
@@ -140,6 +140,7 @@ private static function processTokens(array $tokens): array
140
141
if ($escaped === true) {
142
$resolved[] = [self::T_CHAR, $char];
143
+ $escaped = false;
144
continue;
145
}
146
tests/unit/Util/FileMatcherTest.php
@@ -494,7 +494,7 @@ public static function provideCharacterGroup(): Generator
494
'/b/[!a-c]/c/d' => false,
495
],
496
];
497
- yield 'literal backslash neagted group' => [
+ yield 'literal backslash negated group' => [
498
new FileMatcherPattern('/a/\\\[!a-c]/c'),
499
[
500
'/a/\\d/c' => true,
0 commit comments