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

Function joinUrlSegments

packages/vite/src/bridge/utils.ts:69–80  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

67 * @internal
68 */
69export function joinUrlSegments(a: string, b: string): string {
70 if (!a || !b) {
71 return a || b || '';
72 }
73 if (a[a.length - 1] === '/') {
74 a = a.substring(0, a.length - 1);
75 }
76 if (b[0] !== '/') {
77 b = `/${b}`;
78 }
79 return a + b;
80}
81
82// https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/node/utils.ts#L1281
83/**

Callers 2

fileToUrlFunction · 0.90
toOutputFilePathInJSFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected