Skip to content

Commit

Permalink
Remove space from anime titles [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Irfan committed Jan 10, 2021
1 parent efd1701 commit 25a353e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Parser/User/History/HistoryItemParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public function getModel(): History
public function getUrl(): MalUrl
{
$url = $this->crawler->filterXPath('//td[1]/a')->attr('href');
$name = $this->crawler->filterXPath('//td[1]/a')->text();
$name = JString::cleanse(
$this->crawler->filterXPath('//td[1]/a')->text()
);

preg_match('~/(.\w+).php\?id=(\d+)~', $url, $matches);

Expand Down

0 comments on commit 25a353e

Please sign in to comment.