MCPcopy Index your code
hub / github.com/itwanger/toBeBetterJavaer / normalizeRoute

Function normalizeRoute

scripts/sync-sidebar.js:100–108  ·  view source on GitHub ↗
(route)

Source from the content-addressed store, hash-verified

98}
99
100function normalizeRoute(route) {
101 if (!route.startsWith("/")) {
102 route = `/${route}`;
103 }
104 if (!route.endsWith("/")) {
105 route = `${route}/`;
106 }
107 return route;
108}
109
110function createTargets(options) {
111 if (options.route) {

Callers 1

parseArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected