diff --git a/scripts/render.ts b/scripts/render.ts index 9fc84484..6244ce38 100644 --- a/scripts/render.ts +++ b/scripts/render.ts @@ -82,7 +82,7 @@ async function fetchPage(url: string) { const anchors = Array.from(document.querySelectorAll('a')); return anchors.map(anchor => anchor.href); }); - for (const link of links.filter(link => (link.startsWith(baseUrl) || (containsKey !== '' && link.includes(containsKey))))) { + for (const link of links.filter(link => (link.startsWith(baseUrl) || (containsKey != '' && link.includes(containsKey))))) { const linkWithoutHash = link.split('#')[0]; if (fetchedLinks.has(linkWithoutHash)) { continue;