From d3841b766f9d37d557646003899f67525c5f755f Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 5 Oct 2021 17:04:09 +0200 Subject: chore: add eslint-plugin-unicorn (#733) --- recipes/redditchat/webview.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'recipes/redditchat/webview.js') diff --git a/recipes/redditchat/webview.js b/recipes/redditchat/webview.js index 14f7f6c..19b306c 100644 --- a/recipes/redditchat/webview.js +++ b/recipes/redditchat/webview.js @@ -1,7 +1,6 @@ module.exports = Ferdi => { // Regular expression for (*) or (1), will extract the asterisk or the number - // eslint-disable-next-line no-useless-escape - const titleRegEx = /^\(([\*\d])\)/; + const titleRegEx = /^\(([\d*])\)/; const getMessages = function unreadCount() { let directCount = 0; let indirectCount = 0; -- cgit v1.2.3-54-g00ecf