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)
218218 // Need to check this pattern for dirs as well as individual file paths.
219219 $ this ->ignoreFilePatterns [$ pattern ] = $ type ;
220220
221- $ pattern = substr ($ pattern , 0 , -2 );
221+ $ pattern = substr ($ pattern , 0 , -2 ). ' (?=/|$) ' ;
222222 $ this ->ignoreDirPatterns [$ pattern ] = $ type ;
223223 } else {
224224 // 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()
111111 '/path/to/src/Main.php ' ,
112112 '/path/to/src/Something/Main.php ' ,
113113 '/path/to/src/Somethingelse/Main.php ' ,
114+ '/path/to/src/SomethingelseEvenLonger/Main.php ' ,
114115 '/path/to/src/Other/Main.php ' ,
115116 ],
116- ['/path/to/src/Main.php ' ],
117+ [
118+ '/path/to/src/Main.php ' ,
119+ '/path/to/src/SomethingelseEvenLonger/Main.php ' ,
120+ ],
117121 ],
118122
119123 // Test ignoring standard/sniff specific exclude patterns.
You can’t perform that action at this time.
0 commit comments