MCPcopy
hub / github.com/coder/mux / isValidUrlPathname

Function isValidUrlPathname

src/node/orpc/server.ts:462–469  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

460};
461
462function isValidUrlPathname(value: string): boolean {
463 return (
464 value.length > 0 &&
465 value.startsWith("/") &&
466 !value.startsWith("//") &&
467 URL_PATHNAME_RE.test(value)
468 );
469}
470
471function normalizePublicBasePath(value: string | null | undefined): string | null {
472 if (!value) {

Callers 3

normalizePublicBasePathFunction · 0.85
createOrpcServerFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected