mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-01 19:42:34 +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"));
|
let filters = args.map(function (arg) RegExp("\\b" + util.regexp.escape(arg) + "\\b", "i"));
|
||||||
if (filters.length)
|
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(
|
commandline.commandOutput(
|
||||||
template.usage(results, params.format));
|
template.usage(results, params.format));
|
||||||
|
|||||||
Reference in New Issue
Block a user