MCPcopy
hub / github.com/vuejs/vue-router / isIncludedRoute

Function isIncludedRoute

src/util/route.js:119–127  ·  view source on GitHub ↗
(current: Route, target: Route)

Source from the content-addressed store, hash-verified

117}
118
119export function isIncludedRoute (current: Route, target: Route): boolean {
120 return (
121 current.path.replace(trailingSlashRE, '/').indexOf(
122 target.path.replace(trailingSlashRE, '/')
123 ) === 0 &&
124 (!target.hash || current.hash === target.hash) &&
125 queryIncludes(current.query, target.query)
126 )
127}
128
129function queryIncludes (current: Dictionary<string>, target: Dictionary<string>): boolean {
130 for (const key in target) {

Callers 2

route.spec.jsFile · 0.90
renderFunction · 0.90

Calls 2

queryIncludesFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…