Skip to content

Commit e94a5c2

Browse files
committed
Refs #527 - parsing base64
1 parent 1a819c3 commit e94a5c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ protected function value(&$out)
13021302
{
13031303
$s = $this->seek();
13041304

1305-
if ($this->literal('url(') && $this->match('data:image\/([a-z0-9+-]+);base64,', $m, false)) {
1305+
if ($this->literal('url(') && $this->match('data:([a-z]+)\/([a-z0-9.+-]+);base64,', $m, false)) {
13061306
$len = strspn($this->buffer, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwyxz0123456789+/=', $this->count);
13071307

13081308
$this->count += $len;

0 commit comments

Comments
 (0)