aboutsummaryrefslogtreecommitdiffstats
path: root/lib/completion.js
diff options
context:
space:
mode:
authorNiklas Baumstark2012-04-11 00:03:40 +0200
committerNiklas Baumstark2012-04-11 00:03:40 +0200
commit09aaab6967881b22431d3e4eaafdac14865fdda0 (patch)
treeaa7499e925d590784e7da75b60aa07d5fb127b46 /lib/completion.js
parentb56ee2730cd78f522ae62800ae5fbe53e43b096e (diff)
downloadvimium-09aaab6967881b22431d3e4eaafdac14865fdda0.tar.bz2
fix strange whitespace artefacts
Diffstat (limited to 'lib/completion.js')
-rw-r--r--lib/completion.js16
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];