(title: string)
| 37 | |
| 38 | const brandSuffix = /\s*[|·\-–—]\s*daily\.dev\s*$/i; |
| 39 | const cleanTitle = (title: string): string => |
| 40 | title.replace(brandSuffix, '').trim(); |
| 41 | |
| 42 | // Classify by the route template (router.pathname), not the resolved URL — only |
| 43 | // the template distinguishes a user profile (`/[userId]`) from other top-level |