From 877ea957caccdc39f52544aa3b9941e888d4a371 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 22 Sep 2010 02:07:08 -0400 Subject: [PATCH] Fix setting "number" options. --HG-- extra : rebase_source : 037b69f01b7501978e2c61037c26f9dde55192d7 --- common/content/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/options.js b/common/content/options.js index 6346cf3d..04feb508 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -421,7 +421,7 @@ const Option = Class("Option", { number: function (operator, values, scope, invert) { // TODO: support floats? Validators need updating. - if (!/^[+-]?(?:0x[0-9a-f]+|0[0-7]*|[1-9]+)$/i.test(values)) + if (!/^[+-]?(?:0x[0-9a-f]+|0[0-7]*|[1-9][0-9]*)$/i.test(values)) return "E521: Number required after := " + this.name + "=" + values; let value = parseInt(values);