From e3d3b155d60b99ba9868012870605089f2814c62 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 20 May 2019 10:08:34 +0100 Subject: [PATCH] remove errant debug --- src/autocomplete/AutocompleteProvider.js | 1 - src/autocomplete/EmojiProvider.js | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/autocomplete/AutocompleteProvider.js b/src/autocomplete/AutocompleteProvider.js index 3a561ffd0a..98ae83c526 100644 --- a/src/autocomplete/AutocompleteProvider.js +++ b/src/autocomplete/AutocompleteProvider.js @@ -61,7 +61,6 @@ export default class AutocompleteProvider { let match; while ((match = commandRegex.exec(query)) != null) { - console.log('Matched ' + JSON.stringify(match)); const start = match.index; const end = start + match[0].length; if (selection.start <= end && selection.end >= start) { diff --git a/src/autocomplete/EmojiProvider.js b/src/autocomplete/EmojiProvider.js index 9f0800c6ff..8afcba6ab0 100644 --- a/src/autocomplete/EmojiProvider.js +++ b/src/autocomplete/EmojiProvider.js @@ -94,8 +94,6 @@ export default class EmojiProvider extends AutocompleteProvider { // Do second match with shouldMatchWordsOnly in order to match against 'name' completions = completions.concat(this.nameMatcher.match(matchedString)); - console.log("pre-sorted completions", completions); - const sorters = []; // make sure that emoticons come first sorters.push((c) => score(matchedString, c.aliases_ascii)); @@ -123,8 +121,6 @@ export default class EmojiProvider extends AutocompleteProvider { range, }; }).slice(0, LIMIT); - - console.log("mapped completions", completions); } return completions; }