Skip to content

Commit 41c8e19

Browse files
[DI] Add "psr4" service attribute for PSR4-based discovery and registration
1 parent 87b6a1d commit 41c8e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Glob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function toRegex($glob, $strictLeadingDot = true, $strictWildcardS
6161
$firstByte = '/' === $car;
6262

6363
if ($firstByte && $strictWildcardSlash && isset($glob[$i + 3]) && '**/' === $glob[$i + 1].$glob[$i + 2].$glob[$i + 3]) {
64-
$car = $strictLeadingDot ? '/((?=[^\.])[^/]+/)*' : '/([^/]+/)*';
64+
$car = $strictLeadingDot ? '/(?:(?=[^\.])[^/]++/)*' : '/(?:[^/]++/)*';
6565
$i += 3;
6666
if ('/' === $delimiter) {
6767
$car = str_replace('/', '\\/', $car);

0 commit comments

Comments
 (0)