소스 검색

fixed depth test

Gildas 5 년 전
부모
커밋
dfd47fd95f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cli/single-file-cli-api.js

+ 1 - 1
cli/single-file-cli-api.js

@@ -121,7 +121,7 @@ async function runNextTask() {
 
 function testMaxDepth(task) {
 	const options = task.options;
-	return (options.crawlMaxDepth == 0 || task.depth < options.crawlMaxDepth) &&
+	return (options.crawlMaxDepth == 0 || task.depth <= options.crawlMaxDepth) &&
 		(options.crawlExternalLinksMaxDepth == 0 || task.externalLinkDepth < options.crawlExternalLinksMaxDepth);
 }