mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-12 18:55:45 +01:00
Fix minor regexpmap parsing bug.
This commit is contained in:
@@ -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)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user