Skip to content

Commit 377f08a

Browse files
committed
Fix unread count parsing from page title.
Fixes #1157 Signed-off-by: Anders Kaseorg <[email protected]>
1 parent add43ba commit 377f08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/renderer/js/components/webview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default class WebView {
184184
}
185185

186186
getBadgeCount(title: string): number {
187-
const messageCountInTitle = /\((\d+)\)/.exec(title);
187+
const messageCountInTitle = /^\((\d+)\)/.exec(title);
188188
return messageCountInTitle ? Number(messageCountInTitle[1]) : 0;
189189
}
190190

0 commit comments

Comments
 (0)