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