MCPcopy
hub / github.com/sveltejs/kit / decode_uri

Function decode_uri

packages/kit/src/utils/url.js:69–78  ·  view source on GitHub ↗
(uri)

Source from the content-addressed store, hash-verified

67 * @param {string} uri
68 */
69export function decode_uri(uri) {
70 try {
71 return decodeURI(uri);
72 } catch (e) {
73 if (e instanceof Error) {
74 e.message = `Failed to decode URI: ${uri}\n` + e.message;
75 }
76 throw e;
77 }
78}
79
80/**
81 * Returns everything up to the first `#` in a URL

Callers 2

visitFunction · 0.90
saveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected