mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
linting
This commit is contained in:
parent
41522cdfb4
commit
ab6f03ce1c
2 changed files with 2 additions and 2 deletions
collector
|
@ -28,7 +28,7 @@ async function scrapeGenericUrl(link, textOnly = false) {
|
|||
|
||||
const url = new URL(link);
|
||||
const decodedPathname = decodeURIComponent(url.pathname);
|
||||
const filename = `${url.hostname}${decodedPathname.replace(/\//g, '_')}`;
|
||||
const filename = `${url.hostname}${decodedPathname.replace(/\//g, "_")}`;
|
||||
|
||||
const data = {
|
||||
id: v4(),
|
||||
|
|
|
@ -109,7 +109,7 @@ async function bulkScrapePages(links, outFolderPath) {
|
|||
|
||||
const url = new URL(link);
|
||||
const decodedPathname = decodeURIComponent(url.pathname);
|
||||
const filename = `${url.hostname}${decodedPathname.replace(/\//g, '_')}`;
|
||||
const filename = `${url.hostname}${decodedPathname.replace(/\//g, "_")}`;
|
||||
|
||||
const data = {
|
||||
id: v4(),
|
||||
|
|
Loading…
Add table
Reference in a new issue