decord/source/1497_decodeComponents.js

29 lines
801 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1497
2026-07-24 07:16:23 +00:00
// Function ID: 17275
2026-07-20 16:05:17 +00:00
// 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);
}
2026-07-23 10:11:24 +00:00
str = arg0;
2026-07-20 16:05:17 +00:00
};