FIX: makes sure we only autocomplete valid emoji tones

This commit is contained in:
Joffrey JAFFEUX 2017-09-08 09:42:13 +02:00 committed by GitHub
parent 6d35b62238
commit 661ae38a03
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ export default Ember.Component.extend({
return resolve([translations[full]]);
}
const match = term.match(/^:?(.*?):t(\d)?$/);
const match = term.match(/^:?(.*?):t([2-6])?$/);
if (match) {
let name = match[1];
let scale = match[2];