mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-21 15:25:09 +01:00
6 lines
195 B
TypeScript
6 lines
195 B
TypeScript
import parse from '../../../mfm/parse';
|
|
|
|
export default function(text: string) {
|
|
if (!text) return [];
|
|
return parse(text).filter(t => t.type === 'emoji' && t.name).map(t => (t as any).name);
|
|
}
|