diff options
| -rw-r--r-- | lib/completion.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/completion.js b/lib/completion.js index 2163dbdd..6f5b0f96 100644 --- a/lib/completion.js +++ b/lib/completion.js @@ -32,7 +32,7 @@ var completion = (function() { * * _Don't use this to check if a string matches a query_. Use `getMatcher(query).test(str)` instead. */ - self.match = function(query, str) { + self.getMatchGroups = function(query, str) { query = self.normalize(query); if (query.length == 0) return str.length ? [str] : []; @@ -49,7 +49,7 @@ var completion = (function() { continue; // we use recursive backtracking here, this is why it's slow. - rest = self.match(query.slice(i), str.slice(partOffset + i)); + rest = self.getMatchGroups(query.slice(i), str.slice(partOffset + i)); if (!rest) continue; return [ @@ -202,7 +202,7 @@ var completion = (function() { // tags and reinsert them after the matching process var htmlTags = {}; str = stripHtmlTags(str, htmlTags); - var groups = fuzzyMatcher.match(query, str); + var groups = fuzzyMatcher.getMatchGroups(query, str); var html = ''; var htmlOffset = 0; |
