1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:07:58 +01:00

Fix 'eht' validator.

--HG--
extra : rebase_source : 38690a1eb26e4dc6a0c6181dcb34b4c20c440065
This commit is contained in:
Kris Maglione
2011-03-10 07:52:12 -05:00
parent 718ad5d807
commit 3eb93fe721
3 changed files with 4 additions and 3 deletions

View File

@@ -189,9 +189,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
let results = array(params.iterate(args))
.sort(function (a, b) String.localeCompare(a.name, b.name));
let filters = args.map(function (arg) RegExp("\\b" + util.regexp.escape(arg) + "\\b", "i"));
let filters = args.map(function (arg) util.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) [item.name, item.description].concat(item.columns || []).some(re.closure.test)));
commandline.commandOutput(
template.usage(results, params.format));