Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.x'
Browse files Browse the repository at this point in the history
* origin/1.x:
  fnmatch bugfix when used on Windows
  • Loading branch information
lisachenko committed Apr 25, 2017
2 parents 6117422 + 346cec9 commit c6fc1db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Instrument/FileSystem/Enumerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getFilter()
if (!empty($includePaths)) {
$found = false;
foreach ($includePaths as $includePattern) {
if (fnmatch("{$includePattern}*", $fullPath)) {
if (fnmatch("{$includePattern}*", $fullPath, FNM_NOESCAPE)) {
$found = true;
break;
}
Expand All @@ -108,7 +108,7 @@ public function getFilter()
}

foreach ($excludePaths as $excludePattern) {
if (fnmatch("{$excludePattern}*", $fullPath)) {
if (fnmatch("{$excludePattern}*", $fullPath, FNM_NOESCAPE)) {
return false;
}
}
Expand Down

0 comments on commit c6fc1db

Please sign in to comment.