This commit is contained in:
Gergő Móricz 2024-11-20 20:19:16 +01:00
parent e2ddc6c65c
commit b1eaecfdb0

View File

@ -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) {