mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-04 08:13:33 +02:00
Allow \c/\C in regexp options and so forth.
This commit is contained in:
@@ -413,7 +413,7 @@ var Styles = Module("Styles", {
|
||||
if (filter === "*")
|
||||
var test = function test(uri) true;
|
||||
else if (!/^(?:[a-z-]+:|[a-z-.]+$)/.test(filter)) {
|
||||
let re = RegExp(filter);
|
||||
let re = util.regexp(filter);
|
||||
test = function test(uri) re.test(uri.spec);
|
||||
}
|
||||
else if (/[*]$/.test(filter)) {
|
||||
|
||||
Reference in New Issue
Block a user