mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 14:25:45 +01:00
Allow \c/\C in regexp options and so forth.
This commit is contained in:
@@ -425,7 +425,7 @@ var Option = Class("Option", {
|
||||
flags = this && this.regexpFlags || "";
|
||||
|
||||
let [, bang, val] = /^(!?)(.*)/.exec(value);
|
||||
let re = RegExp(Option.dequote(val), flags);
|
||||
let re = util.regexp(Option.dequote(val), flags);
|
||||
re.bang = bang;
|
||||
re.result = result !== undefined ? result : !bang;
|
||||
re.toString = function () Option.unparseRegexp(this, keepQuotes);
|
||||
|
||||
Reference in New Issue
Block a user