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

Formatting fixes.

This commit is contained in:
Doug Kearns
2009-08-26 23:09:13 +10:00
parent bc1163c0c7
commit b6a898a5fa
9 changed files with 17 additions and 15 deletions

View File

@@ -471,13 +471,13 @@ CompletionContext.prototype = {
let filter = fixCase(this.filter);
if (this.anchored)
{
function compare (text, s) text.substr(0, s.length) == s;
function compare(text, s) text.substr(0, s.length) == s;
substrings = util.map(util.range(filter.length, text.length + 1),
function (end) text.substring(0, end));
}
else
{
function compare (text, s) text.indexOf(s) >= 0;
function compare(text, s) text.indexOf(s) >= 0;
substrings = [];
let start = 0;
let idx;