Skip to content

Commit

Permalink
#593 - clean up regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mrook committed Oct 12, 2016
1 parent 60c43e2 commit 5de3dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/phing/types/selectors/SelectorUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static function matchPath($pattern, $str, $isCaseSensitive = true)
$patternReplacements = array(
$dirSep . '\*\*' . $dirSep => $dirSep . '.*' . $trailingDirSep,
$dirSep . '\*\*' => $trailingDirSep,
'\*\*' . $dirSep => '((.*' . $dirSep . ')|)',
'\*\*' . $dirSep => '(.*' . $dirSep . ')?',
'\*\*' => '.*',
'\*' => '[^' . $dirSep . ']*',
'\?' => '[^' . $dirSep . ']'
Expand Down

0 comments on commit 5de3dcc

Please sign in to comment.