mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: makes sure we only autocomplete valid emoji tones
This commit is contained in:
parent
6d35b62238
commit
661ae38a03
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue