Skip to content

s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent) error #530

@chenlong07253

Description

@chenlong07253

image
你好,我们在用js-cookie的时候发现一个兼容问题,我们的后端是.net,编码后的字符串是小写, js取不到相应的cookie。

Hello, we found a compatibility problem when using js-cookie. Our backend is. net, the encoding string is lowercase, JS can not get the corresponding cookie.

"%e5%9c%a8%e5%b8%8c%e6%9c%9b%e7%9a%84%e7%94%b0%e9%87%8e%e4%b8%8a".replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent)

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