MCPcopy Create free account
hub / github.com/massCodeIO/massCode / isRouteNameInSpace

Function isRouteNameInSpace

src/renderer/spaceDefinitions.ts:25–33  ·  view source on GitHub ↗
(
  routeName: RouteRecordName | null | undefined,
  prefix: string,
)

Source from the content-addressed store, hash-verified

23}
24
25function isRouteNameInSpace(
26 routeName: RouteRecordName | null | undefined,
27 prefix: string,
28) {
29 return (
30 typeof routeName === 'string'
31 && (routeName === prefix || routeName.startsWith(`${prefix}/`))
32 )
33}
34
35function getSavedNotesRouteName() {
36 const savedRoute = store.app.get<string>('notes.route')

Callers 1

getSpaceDefinitionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected