diff --git a/src/Instrument/FileSystem/Enumerator.php b/src/Instrument/FileSystem/Enumerator.php index caad94da..f206d5ae 100644 --- a/src/Instrument/FileSystem/Enumerator.php +++ b/src/Instrument/FileSystem/Enumerator.php @@ -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; } @@ -108,7 +108,7 @@ public function getFilter() } foreach ($excludePaths as $excludePattern) { - if (fnmatch("{$excludePattern}*", $fullPath)) { + if (fnmatch("{$excludePattern}*", $fullPath, FNM_NOESCAPE)) { return false; } }