diff --git a/src/Glob.php b/src/Glob.php index e85f3ff..069b2f9 100644 --- a/src/Glob.php +++ b/src/Glob.php @@ -306,7 +306,7 @@ public static function toRegEx($glob, $flags = 0, $delimiter = '~') case '/': if (isset($glob[$i + 3]) && '**/' === $glob[$i + 1].$glob[$i + 2].$glob[$i + 3]) { - $regex .= '/(.+/)*'; + $regex .= '/([^/]+/)*'; $i += 3; } else { $regex .= '/';