mirror of
https://github.com/619dev/PaperPhone.git
synced 2026-07-02 06:54:29 +08:00
2 lines
140 B
JavaScript
2 lines
140 B
JavaScript
export const uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
|