MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / pathFromUrl

Function pathFromUrl

packages/server-e2e/src/report.ts:600–607  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

598}
599
600function pathFromUrl(url: string): string {
601 try {
602 const parsed = new URL(url);
603 return `${parsed.pathname}${parsed.search}`;
604 } catch {
605 return url;
606 }
607}
608
609function requestForFetchReport(
610 input: Parameters<typeof fetch>[0],

Callers 1

fetchWithReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected