mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
We should compare filepath with excluded path using "starts-with" because the filepath may be a child of the excluded path
This makes the excludes array work when using -r
This commit is contained in:
parent
003099a0a8
commit
c5a24af559
@ -57,7 +57,7 @@ exports.Filter.prototype.isIncluded = function(filepath) {
|
||||
|
||||
if (this.exclude) {
|
||||
this.exclude.forEach(function(exclude) {
|
||||
if ( exclude === filepath || exclude === path.dirname(filepath) ) {
|
||||
if ( filepath.indexOf(exclude) === 0 ) {
|
||||
included = false;
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user