rittenhop-dev/versions/5.94.2/node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js
2024-09-23 19:40:12 -04:00

10 lines
375 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extendedEncodeURIComponent = void 0;
function extendedEncodeURIComponent(str) {
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
});
}
exports.extendedEncodeURIComponent = extendedEncodeURIComponent;