MCPcopy Index your code
hub / github.com/TanStack/router / exactPathTest

Function exactPathTest

packages/router-core/src/path.ts:61–70  ·  view source on GitHub ↗
(
  pathName1: string,
  pathName2: string,
  basepath: string,
)

Source from the content-addressed store, hash-verified

59 * relative to the provided `basepath`.
60 */
61export function exactPathTest(
62 pathName1: string,
63 pathName2: string,
64 basepath: string,
65): boolean {
66 return (
67 removeTrailingSlash(pathName1, basepath) ===
68 removeTrailingSlash(pathName2, basepath)
69 )
70}
71
72// When resolving relative paths, we treat all paths as if they are trailing slash
73// documents. All trailing slashes are removed after the path is resolved.

Callers 4

path.test.tsFile · 0.90
useLinkPropsFunction · 0.90
useLinkPropsFunction · 0.90
useLinkPropsFunction · 0.90

Calls 1

removeTrailingSlashFunction · 0.70

Tested by

no test coverage detected