Skip to content

Fails to parse utf8 encoded json #14

Description

@TheWisestOne

Honestly I'm not 100% sure if these are valid, but I have encountered data URIs that look like this:

data:application/json;utf8,{"key":"some value"}

OR

data:application/json,{"key":"some value"}

Running parseDataUrl on these returns false, so I have to special case these in my code. Raising this issue in case these should be supported by the library, but I will defer to public opinion on if this is in line with the data url specification

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions