From de7b73a8f78ede520d4d0127c207e86bfc1d4270 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 23 Dec 2010 01:13:26 -0500 Subject: [PATCH] Fix minor regexpmap parsing bug. --- common/content/options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/content/options.js b/common/content/options.js index 9ce791a3..843c413c 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -450,10 +450,10 @@ const Option = Class("Option", { regexpmap: function (value) Option.splitList(value, true).map(function (v) { let [count, re, quote] = Commands.parseArg(v, /:/, true); - v = Option.dequote(v.substr(count + 1)); + let val = Option.dequote(v.substr(count + 1)); if (count === v.length) - [v, re] = [re, ".?"]; - return Option.parseRegexp(re, v, this.regexpFlags); + [val, re] = [re, ".?"]; + return Option.parseRegexp(re, val, this.regexpFlags); }, this) },