(loc: Location, root: string, useHash: boolean)
| 92 | }; |
| 93 | |
| 94 | export const readSegments = (loc: Location, root: string, useHash: boolean): string[] | null => { |
| 95 | const prefix = parsePath(root).segments; |
| 96 | const pathname = useHash ? loc.hash.slice(1) : loc.pathname; |
| 97 | const segments = parsePath(pathname).segments; |
| 98 | return removePrefix(prefix, segments); |
| 99 | }; |
| 100 | |
| 101 | /** |
| 102 | * Parses the path to: |
no test coverage detected