forked from DebaucheryLibrarian/traxxx
Refactored New Sensations scraper.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user