1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 01:15:45 +01:00

Stricter number option parsing (and comment out some dump statements)

This commit is contained in:
Kris Maglione
2009-01-28 09:15:26 -05:00
parent a29e5246d1
commit 70022ff0af
4 changed files with 7 additions and 10 deletions

View File

@@ -203,9 +203,9 @@ Option.prototype = {
break;
case "number":
let value = parseInt(values); // deduce radix
let value = Number(values); // deduce radix
if (isNaN(value))
if (isNaN(value) || value != parseInt(value))
return "E521: Number required";
switch (operator)