MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / stripExt

Function stripExt

docs/content-collections.ts:53–53  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

51 return posix.normalize(s.replace(/\\/g, "/"))
52}
53const stripExt = (s: string) => s.replace(/\.(md|mdx)$/i, "")
54const stripTrailingIndex = (s: string) => s.replace(/\/index$/i, "")
55
56/*

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…