Skip to content

encode RFC3986 #51

@fly96-ocean

Description

@fly96-ocean

Hi,

I found our URI contains special character: !'()*.
So could you please add encodeURIComponentRFC3986 function and then replace original encodeURIComponent in utils.coffee?

encodeURIComponentRFC3986: (str) ->
return encodeURIComponent(str).replace(/[!'()*]/g, (c) ->
return '%' + c.charCodeAt(0).toString(16);
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions