Added basic Pascals Subsluts scraper.

This commit is contained in:
DebaucheryLibrarian
2020-09-14 02:40:27 +02:00
parent 65d079eec0
commit ba7419d3b0
11 changed files with 114 additions and 0 deletions

View File

@@ -56,6 +56,10 @@ function prefixUrl(urlValue, origin, protocol = 'https') {
return `${origin}${urlValue}`;
}
if (origin && /^\.\//.test(urlValue)) {
return `${origin}${urlValue.slice(1)}`;
}
if (origin) {
return `${origin}/${urlValue}`;
}