MCPcopy
hub / github.com/sveltejs/kit / get_route_segments

Function get_route_segments

packages/kit/src/utils/routing.js:130–132  ·  view source on GitHub ↗
(route)

Source from the content-addressed store, hash-verified

128 * @returns string[]
129 */
130export function get_route_segments(route) {
131 return route.slice(1).split('/').filter(affects_path);
132}
133
134/**
135 * @param {RegExpMatchArray} match

Callers 6

prerenderFunction · 0.90
remove_group_segmentsFunction · 0.90
split_route_idFunction · 0.90
create_builderFunction · 0.90
parse_route_idFunction · 0.85
resolve_routeFunction · 0.85

Calls 1

filterMethod · 0.65

Tested by

no test coverage detected