Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
chayleaf committed Jul 6, 2021
1 parent f2a8c0d commit 21388a4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/autocomplete/CustomEmojiProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function score(query, space) {

export default class EmojiProvider extends AutocompleteProvider {
matcher: QueryMatcher<ICustomEmojiShort>;
nameMatcher: QueryMatcher<ICustomEmojiShort>;

constructor() {
super(CUSTOM_EMOJI_REGEX);
Expand Down Expand Up @@ -89,9 +88,6 @@ export default class EmojiProvider extends AutocompleteProvider {
const matchedString = command[0];
completions = this.matcher.match(matchedString, limit);

// Do second match with shouldMatchWordsOnly in order to match against 'name'
completions = completions.concat(this.nameMatcher.match(matchedString));

const sorters = [];

// sort by score (Infinity if matchedString not in shortname)
Expand Down

0 comments on commit 21388a4

Please sign in to comment.