diff --git a/app/renderer/js/components/webview.ts b/app/renderer/js/components/webview.ts index afbadcc0e..7636b2e42 100644 --- a/app/renderer/js/components/webview.ts +++ b/app/renderer/js/components/webview.ts @@ -184,7 +184,7 @@ export default class WebView { } getBadgeCount(title: string): number { - const messageCountInTitle = /\((\d+)\)/.exec(title); + const messageCountInTitle = /^\((\d+)\)/.exec(title); return messageCountInTitle ? Number(messageCountInTitle[1]) : 0; }