From 165c29f9f8ab25a6b085203723aebb9a91735298 Mon Sep 17 00:00:00 2001 From: lemonslut Date: Sun, 8 Jun 2025 00:43:46 -0600 Subject: [PATCH] eslint: unnecessary escape --- src/sites/twitch-twilight/modules/channel.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sites/twitch-twilight/modules/channel.jsx b/src/sites/twitch-twilight/modules/channel.jsx index 1a3553cc..1768ef62 100644 --- a/src/sites/twitch-twilight/modules/channel.jsx +++ b/src/sites/twitch-twilight/modules/channel.jsx @@ -521,7 +521,7 @@ export default class Channel extends Module { // is actually a static string. if ( typeof c === 'string' && /^[0-9,.]+$/.test(c) ) { try { - const val = parseInt(c.replace(/[\.,]+/, ''), 10); + const val = parseInt(c.replace(/[.,]+/, ''), 10); if ( ! isNaN(val) && isFinite(val) && val > 0 ) return val; } catch(err) { /* no-op */ }