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:
@@ -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);
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user