mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 15:52:27 +01:00
Fix :list* filtering.
--HG-- branch : key-processing
This commit is contained in:
@@ -173,7 +173,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
|
||||
let filters = args.map(function (arg) RegExp("\\b" + util.regexp.escape(arg) + "\\b", "i"));
|
||||
if (filters.length)
|
||||
results = results.filter(function (item) filters.every(function (re) re.test(item.name + item.description)));
|
||||
results = results.filter(function (item) filters.every(function (re) re.test(item.name + " " + item.description)));
|
||||
|
||||
commandline.commandOutput(
|
||||
template.usage(results, params.format));
|
||||
|
||||
Reference in New Issue
Block a user