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:
parent
30dda9ef64
commit
165c29f9f8
1 changed files with 1 additions and 1 deletions
|
@ -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 */ }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue