1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 15:05:46 +01:00

Make 'passkeys' a sitemap rather than a regexpmap for parity with autocmds, groups, and styles.

--HG--
extra : rebase_source : 5e3e621416934d4c085eef491dd54243308f92c8
This commit is contained in:
Kris Maglione
2011-02-17 13:58:39 -05:00
parent ec2630461c
commit 589849c06d
6 changed files with 70 additions and 37 deletions

View File

@@ -53,9 +53,6 @@ var Group = Class("Group", {
let (match = array.nth(siteFilter.filters, function (f) f(uri), 0))
match && match.result;
if (!isArray(patterns))
patterns = Option.splitList(patterns, true);
return update(siteFilter, {
toString: function () this.filters.join(","),
@@ -64,14 +61,7 @@ var Group = Class("Group", {
function (f) <span highlight={uri && f(uri) ? "Filter" : ""}>{f}</span>,
<>,</>),
filters: patterns.map(function (pattern) {
let [, res, filter] = /^(!?)(.*)/.exec(pattern);
return update(Styles.matchFilter(Option.dequote(filter)), {
result: !res,
toString: function () pattern
});
})
filters: Option.parse.sitelist(patterns)
});
},