Skip to content

Commit

Permalink
Merge pull request #2 from JeffreyWay/patch-1
Browse files Browse the repository at this point in the history
Remove slash
  • Loading branch information
bobbybouwmann authored Sep 4, 2019
2 parents 6f55f18 + 8619118 commit a6052a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Laracasts/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function searchFor(string $term)
$crawler->filter('div.conversation-list-item')->each(function (BaseCrawler $listItem) use ($results) {
$result = (new Result(
$listItem->filter('a.conversation-list-link')->first()->text(),
static::BASE_URL . $listItem->filter('a.conversation-list-link')->first()->attr('href')
static::BASE_URL . substr($listItem->filter('a.conversation-list-link')->first()->attr('href'), 1)
))->byAuthor(
$listItem->filter('.conversation-list-title div a.tw-uppercase')->first()->text(),
$listItem->filter('.conversation-list-title div a.tw-uppercase')->first()->attr('href')
Expand Down

0 comments on commit a6052a1

Please sign in to comment.