diff options
| author | Niklas Baumstark | 2012-04-11 00:03:40 +0200 |
|---|---|---|
| committer | Niklas Baumstark | 2012-04-11 00:03:40 +0200 |
| commit | 09aaab6967881b22431d3e4eaafdac14865fdda0 (patch) | |
| tree | aa7499e925d590784e7da75b60aa07d5fb127b46 /lib/completion.js | |
| parent | b56ee2730cd78f522ae62800ae5fbe53e43b096e (diff) | |
| download | vimium-09aaab6967881b22431d3e4eaafdac14865fdda0.tar.bz2 | |
fix strange whitespace artefacts
Diffstat (limited to 'lib/completion.js')
| -rw-r--r-- | lib/completion.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/completion.js b/lib/completion.js index 935773a5..8b63fab0 100644 --- a/lib/completion.js +++ b/lib/completion.js @@ -103,14 +103,14 @@ var completion = (function() { // build up a regex for fuzzy matching. This is the fastest method I checked (faster than: // string building, splice, concat, multi-level join) var regex = ['^']; - for (var i = 0; i < query.length; ++i) { - regex.push('([^'); - regex.push(query[i]); - regex.push(']*)('); - regex.push(query[i]); - regex.push(')'); - } - regex.push('(.*)$'); + for (var i = 0; i < query.length; ++i) { + regex.push('([^'); + regex.push(query[i]); + regex.push(']*)('); + regex.push(query[i]); + regex.push(')'); + } + regex.push('(.*)$'); self.matcherCache[query] = new RegExp(regex.join(''), 'i'); } return self.matcherCache[query]; |
