autocomplete: replace Fuse.js with liblevenshtein

This commit is contained in:
Aviral Dasgupta
2017-03-07 04:09:25 +05:30
parent edd5903ed7
commit 78641a80dd
7 changed files with 92 additions and 20 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import React from 'react';
import type {Completion, SelectionRange} from './Autocompleter';
export default class AutocompleteProvider {
constructor(commandRegex?: RegExp, fuseOpts?: any) {
constructor(commandRegex?: RegExp) {
if (commandRegex) {
if (!commandRegex.global) {
throw new Error('commandRegex must have global flag set');