Skip to content

Commit

Permalink
Fix 257 (#4393)
Browse files Browse the repository at this point in the history
* fix(tldrtech): trim duplicate leading slashes

* fix
  • Loading branch information
dvikan authored Jan 3, 2025
1 parent 97f7df0 commit f9e9c81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridges/TldrTechBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public function collectData()
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;
}
Expand Down

0 comments on commit f9e9c81

Please sign in to comment.