fix 2
This commit is contained in:
@@ -233,7 +233,7 @@ export class WebCrawler {
|
|||||||
let href = $(element).attr("href");
|
let href = $(element).attr("href");
|
||||||
if (href) {
|
if (href) {
|
||||||
if (href.match(/^https?:\/[^\/]/)) {
|
if (href.match(/^https?:\/[^\/]/)) {
|
||||||
href = href.replace(/^https?:\/[^\/]/, "$&/");
|
href = href.replace(/^https?:\//, "$&/");
|
||||||
}
|
}
|
||||||
const u = this.filterURL(href, url);
|
const u = this.filterURL(href, url);
|
||||||
if (u !== null) {
|
if (u !== null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user