Skip to content

Commit

Permalink
Merge pull request #2 from chellem/master
Browse files Browse the repository at this point in the history
should not change case of image source
  • Loading branch information
dedalozzo committed Apr 28, 2016
2 parents 49203db + 1573942 commit 7671d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Converter/HTMLConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function ($matches) {

// Extracts the src.
if (preg_match('/\s*src\s*=\s*("([^"]*")|\'[^\']*\'|([^\'">\s]+))/iu', $matches[0], $others) === 1)
$src = strtolower(trim($others[1], '"'));
$src = trim($others[1], '"');
else
throw new \RuntimeException(sprintf("Text identified by '%d' has malformed images", $this->id));

Expand Down Expand Up @@ -214,4 +214,4 @@ public function toBBCode() {
return $this->text;
}

}
}

0 comments on commit 7671d25

Please sign in to comment.