PHP-dataURI
PHP-dataURI copied to clipboard
Regexp was missing case
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.
Also...
'/^data:
A url can contain a data url.
@jygaulier Should this issue be closed ? (the last comment about '/^data: was not implemented AFAIK)