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()}`);
|