From b1eaecfdb0f1ea79da143b77794ac1026449637c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Wed, 20 Nov 2024 20:19:16 +0100 Subject: [PATCH] fix 2 --- apps/api/src/scraper/WebScraper/crawler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/scraper/WebScraper/crawler.ts b/apps/api/src/scraper/WebScraper/crawler.ts index cb93eede..a7c7de75 100644 --- a/apps/api/src/scraper/WebScraper/crawler.ts +++ b/apps/api/src/scraper/WebScraper/crawler.ts @@ -233,7 +233,7 @@ export class WebCrawler { let href = $(element).attr("href"); if (href) { if (href.match(/^https?:\/[^\/]/)) { - href = href.replace(/^https?:\/[^\/]/, "$&/"); + href = href.replace(/^https?:\//, "$&/"); } const u = this.filterURL(href, url); if (u !== null) {