1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 09:35:47 +01:00

Accept more plausible URLs rather than falling back to horrid defsearch. Closes issue #338.

This commit is contained in:
Kris Maglione
2011-02-12 20:52:18 -05:00
parent 261a325ced
commit 11127c5a7d
3 changed files with 38 additions and 36 deletions

View File

@@ -384,7 +384,7 @@ var Addons = Module("addons", {
}, {
argCount: "1",
completer: function (context) {
context.filters.push(function ({ item }) item.isDirectory() || /\.xpi$/.test(item.leafName));
context.filters.push(function ({ isdir, text }) isdir || /\.xpi$/.test(text));
completion.file(context);
},
literal: 0