( segmentGroup: UrlSegmentGroup, slicedSegments: UrlSegment[], r: Route, )
| 211 | } |
| 212 | |
| 213 | export function emptyPathMatch( |
| 214 | segmentGroup: UrlSegmentGroup, |
| 215 | slicedSegments: UrlSegment[], |
| 216 | r: Route, |
| 217 | ): boolean { |
| 218 | if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') { |
| 219 | return false; |
| 220 | } |
| 221 | |
| 222 | return r.path === ''; |
| 223 | } |
| 224 | |
| 225 | export function noLeftoversInUrl( |
| 226 | segmentGroup: UrlSegmentGroup, |
no test coverage detected