mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 01:32:31 +02:00
Fix regex filters for site-specific mappings.
--HG-- branch : key-processing
This commit is contained in:
1 parent
a8eed85aaf
commit
7f15781e41
2 files changed
+3
-3
No files matched your search
@@ -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