mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-10 08:10:52 +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.
|
// is actually a static string.
|
||||||
if ( typeof c === 'string' && /^[0-9,.]+$/.test(c) ) {
|
if ( typeof c === 'string' && /^[0-9,.]+$/.test(c) ) {
|
||||||
try {
|
try {
|
||||||
const val = parseInt(c.replace(/[\.,]+/, ''), 10);
|
const val = parseInt(c.replace(/[.,]+/, ''), 10);
|
||||||
if ( ! isNaN(val) && isFinite(val) && val > 0 )
|
if ( ! isNaN(val) && isFinite(val) && val > 0 )
|
||||||
return val;
|
return val;
|
||||||
} catch(err) { /* no-op */ }
|
} catch(err) { /* no-op */ }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue