File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
tests/Core/Filters/Filter Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ protected function shouldIgnorePath($path)
218
218
// Need to check this pattern for dirs as well as individual file paths.
219
219
$ this ->ignoreFilePatterns [$ pattern ] = $ type ;
220
220
221
- $ pattern = substr ($ pattern , 0 , -2 );
221
+ $ pattern = substr ($ pattern , 0 , -2 ). ' (?=/|$) ' ;
222
222
$ this ->ignoreDirPatterns [$ pattern ] = $ type ;
223
223
} else {
224
224
// This is a file-specific pattern, so only need to check this
Original file line number Diff line number Diff line change @@ -111,9 +111,13 @@ public function dataExcludePatterns()
111
111
'/path/to/src/Main.php ' ,
112
112
'/path/to/src/Something/Main.php ' ,
113
113
'/path/to/src/Somethingelse/Main.php ' ,
114
+ '/path/to/src/SomethingelseEvenLonger/Main.php ' ,
114
115
'/path/to/src/Other/Main.php ' ,
115
116
],
116
- ['/path/to/src/Main.php ' ],
117
+ [
118
+ '/path/to/src/Main.php ' ,
119
+ '/path/to/src/SomethingelseEvenLonger/Main.php ' ,
120
+ ],
117
121
],
118
122
119
123
// Test ignoring standard/sniff specific exclude patterns.
You can’t perform that action at this time.
0 commit comments