( segmentGroup: UrlSegmentGroup, slicedSegments: UrlSegment[], r: Route, )
| 225 | } |
| 226 | |
| 227 | export function emptyPathMatch( |
| 228 | segmentGroup: UrlSegmentGroup, |
| 229 | slicedSegments: UrlSegment[], |
| 230 | r: Route, |
| 231 | ): boolean { |
| 232 | if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') { |
| 233 | return false; |
| 234 | } |
| 235 | |
| 236 | return r.path === ''; |
| 237 | } |
| 238 | |
| 239 | export function noLeftoversInUrl( |
| 240 | segmentGroup: UrlSegmentGroup, |
no test coverage detected
searching dependent graphs…