dragonroll/backend/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js

2 lines
140 B
JavaScript
Raw Normal View History

2024-09-21 17:08:36 +00:00
export const uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);