Skip to content

encode RFC3986 #51

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);
);

Activity

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

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