mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-22 06:35:10 +01:00
7 lines
186 B
TypeScript
7 lines
186 B
TypeScript
|
import parse from '../../../mfm/parse';
|
||
|
|
||
|
export default function(text: string) {
|
||
|
if (!text) return [];
|
||
|
return parse(text).filter(t => t.type === 'emoji').map(t => (t as any).emoji);
|
||
|
}
|