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

Fix cpt= verifier

This commit is contained in:
Kris Maglione
2008-11-25 01:48:19 +00:00
parent ac2378110d
commit ce0542bf66
2 changed files with 4 additions and 4 deletions

View File

@@ -1331,16 +1331,17 @@ function Completion() //{{{
context.title = [keyword + " Quick Search"];
context.background = true;
context.anchored = true;
context.quote = decodeURIComponent;
context.generate = function () {
let [begin, end] = item.url.split("%s");
return history.get({ uri: window.makeURI(begin), uriIsPrefix: true }).map(function (item) {
let rest = item.url.length - end.length;
let query = item.url.substring(begin.length, rest);
item.url = query;
if (item.url.substr(rest) == end && query.indexOf("&") == -1)
{
item.url = decodeURIComponent(query);
return item;
}
}).filter(function (k) k);
};
});