PHP-dataURI icon indicating copy to clipboard operation
PHP-dataURI copied to clipboard

Regexp was missing case

Open haykgh opened this issue 6 years ago • 2 comments

Dear contributors,

please replace following regular expression in Parser.php: '/data:([a-zA-Z-\/+]*)([a-zA-Z0-9-_;=.+]+)?,(.*)/' with '/data:([a-zA-Z-\/+.]*)([a-zA-Z0-9-_;=.+]+)?,(.*)/' to handle cases like application/vnd.ms-excel.

This is also missed test case 5.

Thanks.

haykgh avatar Aug 09 '19 08:08 haykgh

Also...

'/^data:

A url can contain a data url.

joeyhub avatar Nov 27 '19 18:11 joeyhub

@jygaulier Should this issue be closed ? (the last comment about '/^data: was not implemented AFAIK)

gnutix avatar Mar 31 '20 07:03 gnutix