1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

eslint: unnecessary escape

This commit is contained in:
lemonslut 2025-06-08 00:43:46 -06:00
parent 30dda9ef64
commit 165c29f9f8
No known key found for this signature in database

View file

@ -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 */ }