MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stripTrailingSlash

Function stripTrailingSlash

packages/core/sdk/src/server-connection.ts:66–66  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

64}
65
66const stripTrailingSlash = (value: string): string => value.replace(/\/+$/, "");
67
68const displayNameFromOrigin = (origin: string): string =>
69 origin.replace(/^https?:\/\//, "").replace(/\/+$/, "");

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected