MCPcopy Index your code
hub / github.com/Waishnav/devspace / normalizePublicBaseUrl

Function normalizePublicBaseUrl

src/cli.ts:295–302  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

293}
294
295function normalizePublicBaseUrl(value: string): string {
296 const trimmed = value.trim();
297 const parsed = new URL(trimmed);
298 parsed.hash = "";
299 parsed.search = "";
300 parsed.pathname = parsed.pathname.replace(/\/+$/, "");
301 return parsed.toString().replace(/\/$/, "");
302}
303
304type TextPromptOptions = Omit<Parameters<typeof prompts.text>[0], "validate"> & {
305 defaultValue: string;

Callers 2

runInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected