aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorale <ale@incal.net>2018-12-06 08:24:27 -0800
committerale <ale@incal.net>2018-12-06 08:24:27 -0800
commit8ca8cc1f72093c0d049a2b94de7aaafeb42fabc0 (patch)
tree7473d25c0c820659435b33d339e980c2ec32d8b5
parent59f3725ff8c81dca1f1305da34e877c0316d4152 (diff)
downloadcrawl-8ca8cc1f72093c0d049a2b94de7aaafeb42fabc0.tar.gz
crawl-8ca8cc1f72093c0d049a2b94de7aaafeb42fabc0.zip
Apply --excludes to related resources too
-rw-r--r--cmd/crawl/crawl.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/crawl/crawl.go b/cmd/crawl/crawl.go
index d0ff268..d5e012a 100644
--- a/cmd/crawl/crawl.go
+++ b/cmd/crawl/crawl.go
@@ -268,7 +268,7 @@ func main() {
crawl.NewRegexpIgnoreScope(excludes),
)
if !*excludeRelated {
- scope = crawl.OR(scope, crawl.NewIncludeRelatedScope())
+ scope = crawl.AND(crawl.OR(scope, crawl.NewIncludeRelatedScope()), crawl.NewRegexpIgnoreScope(excludes))
}
outf, err := os.Create(*outputFile)