(current: Route, target: Route)
| 117 | } |
| 118 | |
| 119 | export 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 | |
| 129 | function queryIncludes (current: Dictionary<string>, target: Dictionary<string>): boolean { |
| 130 | for (const key in target) { |
no test coverage detected
searching dependent graphs…