Refactored New Sensations scraper.

This commit is contained in:
DebaucheryLibrarian
2023-06-05 02:13:36 +02:00
parent 164757ee26
commit adda78f0c6
51 changed files with 172 additions and 85 deletions

View File

@@ -103,7 +103,7 @@ function urlToHostname(url) {
try {
const hostname = new URL(url)
.hostname
.match(/(www\.)(.*)/)?.at(-1);
.match(/(www\.)?(.*)/)?.at(-1);
return hostname;
} catch (error) {