dragonroll/backend/node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js

6 lines
195 B
JavaScript
Raw Normal View History

2024-09-21 17:08:36 +00:00
export function extendedEncodeURIComponent(str) {
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
});
}