Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
130
export
function
get_route_segments(route) {
131
return
route.slice(1).split(
'/'
).filter(affects_path);
132
}
133
134
/**
135
* @param {RegExpMatchArray} match
Callers
6
prerender
Function · 0.90
remove_group_segments
Function · 0.90
split_route_id
Function · 0.90
create_builder
Function · 0.90
parse_route_id
Function · 0.85
resolve_route
Function · 0.85
Calls
1
filter
Method · 0.65
Tested by
no test coverage detected