10 lines
375 B
JavaScript
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;
|