mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 13:48:00 +01:00
Serialize :loadplugins command so that options and commands defined by plugins work properly by default.
This commit is contained in:
@@ -391,6 +391,9 @@ const Option = Class("Option", {
|
||||
},
|
||||
|
||||
parseRegexp: function (value, result, flags) {
|
||||
if (isArray(flags)) // Called by map
|
||||
result = flags = undefined;
|
||||
|
||||
let [, bang, val] = /^(!?)(.*)/.exec(value);
|
||||
let re = RegExp(Option.dequote(val), flags);
|
||||
re.bang = bang;
|
||||
|
||||
Reference in New Issue
Block a user