From b69b088d0f7f009465e1e2cf5ca5ff9b4d82e4a6 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Thu, 12 Mar 2026 13:16:18 -0500 Subject: [PATCH] fix: strip all stacked status emojis from page title The regex previously only stripped one leading emoji, so if emojis stacked up, each update would only remove one, letting the stack grow. Changed to use + quantifier to strip all leading emoji+space sequences. --- assets/js/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/app.ts b/assets/js/app.ts index e68a4021..2f462efb 100644 --- a/assets/js/app.ts +++ b/assets/js/app.ts @@ -1369,7 +1369,7 @@ const StatusTitle = { mounted(this: any) { this.handleEvent("update_status_emoji", ({ emoji }: { emoji: string }) => { const currentTitle = document.title - const titleWithoutEmoji = currentTitle.replace(/^(?:🔴|🟡|🟢)\s/u, "") + const titleWithoutEmoji = currentTitle.replace(/^(?:(?:🔴|🟡|🟢)\s)+/u, "") document.title = emoji ? `${emoji} ${titleWithoutEmoji}` : titleWithoutEmoji }) }