MCPcopy
hub / github.com/TanStack/router / comparePaths

Function comparePaths

packages/router-core/src/router.ts:2947–2949  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

2945const normalize = (str: string) =>
2946 str.endsWith('/') && str.length > 1 ? str.slice(0, -1) : str
2947function comparePaths(a: string, b: string) {
2948 return normalize(a) === normalize(b)
2949}
2950
2951/**
2952 * Lazily import a module function and forward arguments to it, retaining

Callers 1

buildMethod · 0.85

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected