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

2 lines
140 B
JavaScript

export const uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);