Skip to content

Commit c6fc1db

Browse files
committed
Merge remote-tracking branch 'origin/1.x'
* origin/1.x: fnmatch bugfix when used on Windows
2 parents 6117422 + 346cec9 commit c6fc1db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Instrument/FileSystem/Enumerator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function getFilter()
9797
if (!empty($includePaths)) {
9898
$found = false;
9999
foreach ($includePaths as $includePattern) {
100-
if (fnmatch("{$includePattern}*", $fullPath)) {
100+
if (fnmatch("{$includePattern}*", $fullPath, FNM_NOESCAPE)) {
101101
$found = true;
102102
break;
103103
}
@@ -108,7 +108,7 @@ public function getFilter()
108108
}
109109

110110
foreach ($excludePaths as $excludePattern) {
111-
if (fnmatch("{$excludePattern}*", $fullPath)) {
111+
if (fnmatch("{$excludePattern}*", $fullPath, FNM_NOESCAPE)) {
112112
return false;
113113
}
114114
}

0 commit comments

Comments
 (0)