decord/source/1497_decodeComponents.js
2026-07-20 16:05:17 +00:00

28 lines
807 B
JavaScript

// Module ID: 1497
// Function ID: 17268
// Name: decodeComponents
// Dependencies: []
// Module 1497 (decodeComponents)
function decodeComponents(join) {
const items = [decodeURIComponent(join.join(""))];
return items;
}
function decode(arg0) {
return decodeURIComponent(arg0);
}
const regExp = new RegExp("(%[a-f0-9]{2})|([^%]+?)", "gi");
const regExp1 = new RegExp("(%[a-f0-9]{2})+", "gi");
export default (arg0) => {
if ("string" !== typeof arg0) {
const _TypeError = TypeError;
const typeError = new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof arg0 + "`");
throw typeError;
} else {
const replaced = str.replace(/\+/g, " ");
const _decodeURIComponent = decodeURIComponent;
return decodeURIComponent(replaced);
}
const str = arg0;
};