From 8ca8cc1f72093c0d049a2b94de7aaafeb42fabc0 Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 6 Dec 2018 08:24:27 -0800 Subject: Apply --excludes to related resources too --- cmd/crawl/crawl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-54-g00ecf