mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 17:15:46 +01:00
Add as-yet undocumented site-specific mapping hives, :map -group flag, and :mapgroup command.
This commit is contained in:
@@ -311,6 +311,10 @@ var Styles = Module("Styles", {
|
||||
matchFilter: function (filter) {
|
||||
if (filter === "*")
|
||||
var test = function test(uri) true;
|
||||
else if (filter[0] == "^") {
|
||||
let re = RegExp(filter[0]);
|
||||
test = function test(uri) re.test(uri.spec);
|
||||
}
|
||||
else if (/[*]$/.test(filter)) {
|
||||
let re = RegExp("^" + util.regexp.escape(filter.substr(0, filter.length - 1)));
|
||||
test = function test(uri) re.test(uri.spec);
|
||||
|
||||
Reference in New Issue
Block a user