MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / encodeURIPath

Function encodeURIPath

packages/vite/src/bridge/utils.ts:116–123  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

114 * @internal
115 */
116export function encodeURIPath(uri: string): string {
117 if (uri.startsWith('data:')) {
118 return uri;
119 }
120 const filePath = cleanUrl(uri);
121 const postfix = filePath !== uri ? uri.slice(filePath.length) : '';
122 return encodeURI(filePath) + postfix;
123}

Callers 1

renderChunkFunction · 0.90

Calls 2

cleanUrlFunction · 0.85
sliceMethod · 0.45

Tested by

no test coverage detected