MCPcopy
hub / github.com/t3-oss/create-t3-app / removeTrailingSlash

Function removeTrailingSlash

cli/src/utils/removeTrailingSlash.ts:1–7  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

1export const removeTrailingSlash = (input: string) => {
2 if (input.length > 1 && input.endsWith("/")) {
3 input = input.slice(0, -1);
4 }
5
6 return input;
7};

Callers 2

parseNameAndPathFunction · 0.85
validateAppNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected