Skip to content

Commit

Permalink
Fixed generated regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart committed Dec 28, 2015
1 parent 8db6ccb commit 732b4fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Glob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '/';
Expand Down

0 comments on commit 732b4fc

Please sign in to comment.