diff options
| author | Niklas Baumstark | 2012-01-21 13:32:16 +0100 |
|---|---|---|
| committer | Niklas Baumstark | 2012-04-10 23:54:36 +0200 |
| commit | 8f126b03e6644be45c9b046fb1a1a682f95eb085 (patch) | |
| tree | 47dca5b7587beeaf5a639e4591b61475eb283c65 /lib/completion.js | |
| parent | 6979cd6955ef9be7b55348c1cfc6cc2d9a3c6c76 (diff) | |
| download | vimium-8f126b03e6644be45c9b046fb1a1a682f95eb085.tar.bz2 | |
underscore is not a word character in our context
Diffstat (limited to 'lib/completion.js')
| -rw-r--r-- | lib/completion.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/completion.js b/lib/completion.js index 0b4c5a0a..d6a901ae 100644 --- a/lib/completion.js +++ b/lib/completion.js @@ -7,7 +7,7 @@ var completion = (function() { var self = {}; self.matcherCacheSize = 300; - self.regexNonWord = /\W*/g; + self.regexNonWord = /[\W_]/i; // cache generated regular expressions self.matcherCache = {}; |
