mirror of https://github.com/vector-im/riot-web
remove errant debug
parent
b0ec594c5a
commit
e3d3b155d6
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue