MCPcopy Create free account
hub / github.com/dailydotdev/apps / cleanTitle

Function cleanTitle

packages/shared/src/hooks/useRecentPages.ts:17–18  ·  view source on GitHub ↗
(title: string)

Source from the content-addressed store, hash-verified

15
16const brandSuffix = /\s*[|·\-–—]\s*daily\.dev\s*$/i;
17const cleanTitle = (title: string): string =>
18 title.replace(brandSuffix, '').trim();
19
20// Records the last visited non-post pages for the v2 Home "Recent" section.
21// Individual post permalinks (`/posts/[id]`) are skipped — those belong to

Callers 1

captureFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected