From beef6dbe73e2ed773029f9d4a9acdb8592794bda Mon Sep 17 00:00:00 2001 From: James Andariese Date: Tue, 1 Mar 2022 21:57:59 -0600 Subject: fix: show correct count in gmail badge when unread > 999 (#831) --- recipes/gmail/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/gmail/webview.js b/recipes/gmail/webview.js index 9b94d33..f7fba84 100644 --- a/recipes/gmail/webview.js +++ b/recipes/gmail/webview.js @@ -25,7 +25,7 @@ module.exports = Ferdi => { if (parentNodeOfParentNode) { const unreadCounts = parentNodeOfParentNode.querySelectorAll('.bsU'); if (unreadCounts.length > 0) { - count = Ferdi.safeParseInt(unreadCounts[0].textContent); + count = Ferdi.safeParseInt(unreadCounts[0].textContent.replace(/[^\p{N}]/gu, '')); } } } -- cgit v1.2.3-54-g00ecf