* fix(tldrtech): trim duplicate leading slashes

* fix
This commit is contained in:
Dag 2025-01-03 08:41:55 +01:00 committed by GitHub
parent 97f7df0d06
commit f9e9c8101e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,7 +56,8 @@ class TldrTechBridge extends BridgeAbstract
if ($child->tag != 'a') {
continue;
}
$this->extractItem(Url::fromString(self::URI . $child->href));
$itemUrl = Url::fromString(self::URI . ltrim($child->href, '/'));
$this->extractItem($itemUrl);
if (count($this->items) >= $limit) {
break;
}