remove errant debug

This commit is contained in:
Matthew Hodgson 2019-05-20 10:08:34 +01:00
parent b0ec594c5a
commit e3d3b155d6
2 changed files with 0 additions and 5 deletions

View file

@ -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) {

View file

@ -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;
}