mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 22:47:59 +01:00
Do away with silly and troublesome regexp entirely from Doug's/anekos' last commit.
This commit is contained in:
@@ -854,8 +854,8 @@ const Options = Module("options", {
|
||||
value = true;
|
||||
else if (value == "false")
|
||||
value = false;
|
||||
else if (/^[+-]?\d+$/.test(value))
|
||||
value = parseInt(value, 10);
|
||||
else if (!isNaN(value))
|
||||
value = parseInt(value);
|
||||
else
|
||||
value = Option.dequote(value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user