Przeglądaj źródła

fixed depth test

Gildas 5 lat temu
rodzic
commit
dfd47fd95f
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
 }