0

Update index.ts

This commit is contained in:
Eric Ciarla 2024-06-13 17:33:13 -04:00
parent bf10e9d392
commit 5e8aa92788

View File

@ -163,7 +163,7 @@ export class WebScraperDataProvider {
inProgress?: (progress: Progress) => void
): Promise<Document[]> {
const baseURLDepth = new URL(this.urls[0]).pathname.split('/').length - 2;
const baseURLDepth = new URL(this.urls[0]).pathname.split('/').length - 1;
const adjustedMaxDepth = this.maxCrawledDepth + baseURLDepth;