MCPcopy
hub / github.com/di-sukharev/opencommit / safeUrl

Function safeUrl

out/cli.cjs:57214–57225  ·  view source on GitHub ↗
(path5)

Source from the content-addressed store, hash-verified

57212 for (const [matchHeaderName, matchHeaderValue2] of Object.entries(mockDispatch2.headers)) {
57213 const headerValue = getHeaderByName(headers, matchHeaderName);
57214 if (!matchValue(matchHeaderValue2, headerValue)) {
57215 return false;
57216 }
57217 }
57218 return true;
57219 }
57220 function safeUrl(path5) {
57221 if (typeof path5 !== "string") {
57222 return path5;
57223 }
57224 const pathSegments = path5.split("?");
57225 if (pathSegments.length !== 2) {
57226 return path5;
57227 }
57228 const qp = new URLSearchParams(pathSegments.pop());

Callers 1

getMockDispatchFunction · 0.85

Calls 2

sortMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…