MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / stripTrailingSlash

Function stripTrailingSlash

self-hosting/quiz.ts:75–76  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

73}
74
75const stripTrailingSlash = (str: string) =>
76 str.endsWith('/') ? str.slice(0, -1) : str;
77
78function searchAndReplaceDockerCompose(replacements: [string, string][]) {
79 const dockerComposePath = path.resolve(__dirname, 'docker-compose.yml');

Callers 1

writeEnvFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected