MCPcopy Index your code
hub / github.com/SyntaxUI/syntaxui / matchPath

Function matchPath

src/components/Navigation.tsx:28–33  ·  view source on GitHub ↗
(pathname: string, href: string)

Source from the content-addressed store, hash-verified

26}
27
28function matchPath(pathname: string, href: string) {
29 if (href === '/components') {
30 return pathname === '/components'
31 }
32 return pathname.startsWith(href)
33}
34
35function NavLink({
36 href,

Callers 3

VisibleSectionHighlightFunction · 0.85
ActivePageMarkerFunction · 0.85
NavigationGroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected