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

Fix minor regexpmap parsing bug.

This commit is contained in:
Kris Maglione
2010-12-23 01:13:26 -05:00
parent 6cb1c1d659
commit de7b73a8f7

View File

@@ -450,10 +450,10 @@ const Option = Class("Option", {
regexpmap: function (value) regexpmap: function (value)
Option.splitList(value, true).map(function (v) { Option.splitList(value, true).map(function (v) {
let [count, re, quote] = Commands.parseArg(v, /:/, true); 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) if (count === v.length)
[v, re] = [re, ".?"]; [val, re] = [re, ".?"];
return Option.parseRegexp(re, v, this.regexpFlags); return Option.parseRegexp(re, val, this.regexpFlags);
}, this) }, this)
}, },