fix: improved number checker

pull/243/head
Josh Moore 1 year ago
parent 5cd3f57175
commit bc3e6b86d6

@ -5,7 +5,7 @@ import { UserConfiguration, UserConfigTypeChecker } from 'ass';
* Returns a boolean if the provided value is a number
*/
const numChecker = (val: string) => {
try { parseInt(val); return true; }
try { return !isNaN(parseInt(val)); }
catch (err) { return false; }
}

Loading…
Cancel
Save