mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-09 22:05:46 +01:00
Fix regex filters for site-specific mappings.
--HG-- branch : key-processing
This commit is contained in:
@@ -311,8 +311,8 @@ var Styles = Module("Styles", {
|
||||
matchFilter: function (filter) {
|
||||
if (filter === "*")
|
||||
var test = function test(uri) true;
|
||||
else if (filter[0] == "^") {
|
||||
let re = RegExp(filter[0]);
|
||||
else if (filter[0] === "^") {
|
||||
let re = RegExp(filter);
|
||||
test = function test(uri) re.test(uri.spec);
|
||||
}
|
||||
else if (/[*]$/.test(filter)) {
|
||||
|
||||
Reference in New Issue
Block a user