Skip to content

Commit

Permalink
Merge pull request #176 from alexdebril/issue/175
Browse files Browse the repository at this point in the history
Issue/175
  • Loading branch information
alexdebril authored May 29, 2018
2 parents 8da7235 + d55dc85 commit 7565c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FeedIo/Reader/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Document
*/
public function __construct(string $content)
{
$this->content = trim($content);
$this->content = trim(str_replace("\xEF\xBB\xBF", '', $content));
}

/**
Expand All @@ -43,7 +43,7 @@ public function __construct(string $content)
*/
public function startWith(string $character) : bool
{
return substr($this->content, 0, 1) === $character;
return mb_substr($this->content, 0, 1) === $character;
}

/**
Expand Down

0 comments on commit 7565c31

Please sign in to comment.