2018-11-02 00:59:40 +01:00
|
|
|
import parse from '../../../mfm/parse';
|
|
|
|
|
|
|
|
export default function(text: string) {
|
|
|
|
if (!text) return [];
|
2018-11-05 11:20:35 +01:00
|
|
|
return parse(text).filter(t => t.type === 'emoji' && t.name).map(t => (t as any).name);
|
2018-11-02 00:59:40 +01:00
|
|
|
}
|