Leave trailing slash in seed URLs (#731)

This commit is contained in:
sua yoo 2023-03-27 14:46:59 -07:00 committed by GitHub
parent e293e98ac3
commit 8033061540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1951,16 +1951,12 @@ https://archiveweb.page/images/${"logo.svg"}`}
}
private parseSeededConfig(): NewCrawlConfigParams["config"] {
const primarySeedUrl = this.formState.primarySeedUrl.replace(/\/$/, "");
const primarySeedUrl = this.formState.primarySeedUrl;
const includeUrlList = this.formState.customIncludeUrlList
? urlListToArray(this.formState.customIncludeUrlList).map((str) =>
str.replace(/\/$/, "")
)
? urlListToArray(this.formState.customIncludeUrlList)
: [];
const additionalSeedUrlList = this.formState.urlList
? urlListToArray(this.formState.urlList).map((str) =>
str.replace(/\/$/, "")
)
? urlListToArray(this.formState.urlList)
: [];
const primarySeed: Seed = {
url: primarySeedUrl,