Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(navigation): preserve leading digit in project menu name (#60210)

eleftheriatrivyzakia170405880e1
diff --git a/frontend/src/lib/components/Account/NewAccountMenu.tsx b/frontend/src/lib/components/Account/NewAccountMenu.tsx
index 511a59a8c35b..237074a7a828 100644
--- a/frontend/src/lib/components/Account/NewAccountMenu.tsx
+++ b/frontend/src/lib/components/Account/NewAccountMenu.tsx
@@ -68,9 +68,9 @@ export function NewAccountMenu({ isLayoutNavCollapsed }: AccountMenuProps): JSX.
const { showCreateProjectModal } = useActions(globalModalsLogic)
const { showCreateOrganizationModal } = useActions(globalModalsLogic)
- const projectNameStartsWithEmoji = currentTeam?.name?.match(/^\p{Emoji}/u) !== null
+ const projectNameStartsWithEmoji = currentTeam?.name?.match(/^\p{Extended_Pictographic}/u) !== null
const projectNameWithoutFirstEmoji = projectNameStartsWithEmoji
- ? currentTeam?.name?.replace(/^\p{Emoji}/u, '').trimStart()
+ ? currentTeam?.name?.replace(/^\p{Extended_Pictographic}/u, '').trimStart()
: currentTeam?.name
return (